-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn 3 does not work with type=module and cypress.config.js #25959
Comments
This also has implications for documentation. Currently there is an implicit assumption that either npm or Yarn Classic is being used as package manager. Yarn Modern (version 2 and later) in
|
pnpm is basically a drop in replacement, I don't think it has any issues, does it? Yarn 3 PnP is a huge problem since we are not a standard module, we are entire native electron app, and Yarn tampers with assumptions we really should be able to make about the underlying Node.js engine. I would like to support Yarn 3 better, but we can never really be "zero installs", since our postinstall hook grabs a binary, and I don't think this is something that could be zipped up and stuck inside a git repo like Yarn 3 does with all the modules (this is my understanding of PnP, anyway - no installs since your modules are all committed in a zip file). |
Since my previous post, pnpm has been added to the Getting Started > Installing Cypress documentation. It works and it is not specifically relevant to this issue about Yarn 3. |
Yarn Modern Plug'n'Play has as an option: zero installs. Don't equate In .yarnrc.yml for Yarn Modern, there are three different modes of
I don't know the solution to this for Cypress!
|
Just my two cents to this… I'm using yarn@4 with both The only thing that I had to do to make cypress work again was to add All that is just to illustrate a use case and possibly give a hint to others — nothing to do on your side. |
Ref: #22747 -> #22747 (comment)
Repro: yarn3typemodule.zip
Workaround: change
cypress.config.js
to be namedcypress.config.mjs
. This should fix the issue. This means anything imported incypress.config.mjs
will need themjs
extension, and you will also need the full extension in the import. Eg:The text was updated successfully, but these errors were encountered: