Hi all, I am currently trying to set up Cypress Co...
# component-testing
m
Hi all, I am currently trying to set up Cypress Component Testing (Cypress 10) with a monorepo project that uses Yarn PNP (Zero Installs) for package management. It looks like I'm having issues when the project is set up as a Yarn PNP project. Changing from
node_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:
Copy code
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.