mammoth-australia-81192
07/26/2022, 5:19 PMnode_modules
as the Yarn linker to pnp
caused the error below in the a repo set up to replicate this issue. I do have some more details, and a minimum replication repo, but before submitting an issue I was hoping to see if anyone else uses that project set up (yarn workspaces w/ PNP) successfully with Cypress 10 Component Testing? It's possible that I am just missing something.
Note: It looks like the automatic setup does not detect the framework or bundler (React/Vite), that Typescript is used, or that the required deps are installed.
Error example:
Error: require() of ES Module /Users/<redacted-project-dir>/cypress.config.js from /Users/<redacted-user>/Library/Caches/Cypress/10.3.1/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_require_async_child.js not supported.
Instead change the require of cypress.config.js in /Users/<redacted-user>/Library/Caches/Cypress/10.3.1/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_require_async_child.js to a dynamic import() which is available in all CommonJS modules.