-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Next 12.0.2 - Cannot find package x with yarn berry #30873
Comments
This a Yarn issue that will be resolved in the next patch release of Yarn 3: You can keep your existing stack operating on v12 by disabling esm in your next config: // next.config.js
module.exports = {
experimental: { esmExternals: false }
} |
This reverts commit d331ba5.
Same issue #30363 This problem is related to ESM loader using SWC compiler and importing an ESM library (it correctly works with Babel compiler). Currently, it doesn't work with yarn v3.2.0-rc.6 (or v3.1.1) and next.js v12.0.4. I don't know if we should add pnpEnableEsmLoader: true to yarnrc.yml and/or use this option: --experimental-loader ./.pnp.loader.mjs |
Closing as duplicate of #30363 |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
12.0.2
What version of Node.js are you using?
16.13.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
next start
Describe the Bug
After upgrading to 12.0.2 from 11.x.x we receive errors when nextjs tries to render the pages.
Note that we are using yarn v2 (Berry | 3.0.2) with zero install config.
Expected Behavior
It should be possible to upgrade from 11.x.x to 12.x.x with yarn v2 and zero install config.
To Reproduce
The text was updated successfully, but these errors were encountered: