(/Users/./Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_require_async_child.js:185:22) at EventEmitter.emit (node:events:512:28) at EventEmitter.emit (node:domain:489:12) at process. (/Users/./Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/dist/index.js:851:20) at setupNodeEvents (/Users/./Documents/GitHub/sponsor-test-automation-cypress/:12:20) at /Users/./Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_plugins.js:118:14 at tr圜atcher (/Users/./Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/node_modules/bluebird/js/release/util.js:16:23) at (/Users/./Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/node_modules/bluebird/js/release/method.js:39:29) at RunPlugins.load (/Users/./Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_plugins.js:115:9) at nSetupNodeEvents (/Users/./Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_plugins.js:276:10) at EventEmitter. (/Users/./Documents/GitHub/sponsor-test-automation-cypress/cypress/plugins/index.js:23:38) at require.extensions. (/Users/./Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/dist/index.js:851:20) at Object. Instead change the require of index.js in to a dynamic import() which is available in all CommonJS modules. If I remove "type" : "module" and attempt to start cypress with npx cypress open -env configFile=testingĮrror : require() of ES Module /Users/./Documents/GitHub/sponsor-test-automation-cypress/node_modules/lighthouse/core/index.js from not supported. I would like for Cypress to start without the error Test code to reproduce (/Users/williamowens/Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_require_async_child.js:116:32 Desired behavior ReferenceError: exports is not defined in ES module scope at file:///Users/williamowens/Documents/GitHub/sponsor-test-automation-cypress/:2:23 at n (node:internal/modules/esm/module_job:175:25) at async Loader.import (node:internal/modules/esm/loader:178:24) at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15) at async loadFile (/Users/williamowens/Library/Caches/Cypress/11.2.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_require_async_child.js:106:14) at async EventEmitter. I have "type": "module", within my package.json file It appears to change nothing.Unable to start cypress with standard command line getting error at startup. In the screen shot below I have a value of 6 just to see what would happen. I think this script is already useful but I want to get this last problem fixed before I try to make it more automated. Now the views read 0,0 but appear to be in the same incorrect locations that they where before. I then tried “Viewport.SetBoxCenter” to correct this to 0,0. These looked to be accurate to where they were placed assuming that the center of the sheet is 0, 0. When I used “View.ViewPortBoxCenter” to see what the locations were I was getting numbers like -3.256, 2.45 and -2.78, 0.28. I have 8 scope boxes and some of them are rotated so every view I place is not on the sheet. I used 0,0,0 as the location and it seems like it is using the center of the entire model. I’m having issues getting the view to be placed on the correct position on the sheet. I’ve also created sheets using our base sheet for naming and placed the new view on the new sheet. So far I’ve been able to duplicate our base view, rename it, and give it a scope box. I’m trying to make a script that will create views give them a scope box and place them on sheets.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |