-
Notifications
You must be signed in to change notification settings - Fork 27.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
next dev --turbo
unable to import ESM-only packages when marked with serverComponentsExternalPackages
#64525
Labels
bug
Issue was opened via the bug report template.
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
locked
Module Resolution
Module resolution (CJS / ESM, module resolving).
Turbopack
Related to Turbopack with Next.js.
Comments
github-actions
bot
added
Module Resolution
Module resolution (CJS / ESM, module resolving).
Turbopack
Related to Turbopack with Next.js.
labels
Apr 15, 2024
timneutkens
added
the
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
label
Apr 16, 2024
vandorsx
added a commit
to vandorsx/next-jade
that referenced
this issue
Jun 6, 2024
Needed for use with Turbopack (vercel/next.js#64525)
As a general FYI, the same issue also affects Shiki |
This comment has been minimized.
This comment has been minimized.
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
Issue was opened via the bug report template.
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
locked
Module Resolution
Module resolution (CJS / ESM, module resolving).
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/dstaley/next-turbo-external-esm
To Reproduce
npm run dev:turbo
npm run dev
Current vs. Expected behavior
Current behavior:
Expected behavior:
When running with
next dev --turbo
ESM-only packages that have been marked withserverComponentsExternalPackages
should still be correctly imported.Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Thu Jan 11 04:09:03 UTC 2024 Available memory (MB): 32101 Available CPU cores: 16 Binaries: Node: 18.19.0 npm: 10.5.0 Yarn: 1.22.22 pnpm: 8.15.4 Relevant Packages: next: 14.2.1 // Latest available version is detected (14.2.1). eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.5 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Module resolution (CJS / ESM, module resolving), Turbopack (--turbo)
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This reproduction uses the
srcset
package which is ESM-only.PACK-2967
The text was updated successfully, but these errors were encountered: