You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package is making Next.js slow to compile because ALL languages and files are being imported, even if you only import a single language.
Next.js doesn't use the esm imports because the “fake esm” unofficial package key is being used, which the majority of packages using it assume is browser code, meaning Next can’t use it to bundle for the Node.js target.
Describe the bug
This package is making Next.js slow to compile because ALL languages and files are being imported, even if you only import a single language.
Next.js doesn't use the esm imports because the “fake esm” unofficial package key is being used, which the majority of packages using it assume is browser code, meaning Next can’t use it to bundle for the Node.js target.
See details from next.js maintainer: https://twitter.com/timneutkens/status/1768022841423732800
Expected behavior
ESM imports should be used in next.js to prevent compilation perf issues
Workaround
Only use explicit esm imports
The text was updated successfully, but these errors were encountered: