-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Missing node_modules in standalone output #56357
Comments
+1 To reproduce:
Actual result: Error in docker logs
|
Related but on next-i18next repo i18next/next-i18next#2214 |
Can confirm. I had to downgraade to |
It works locally because of node.js resolution algorithm of node_modules. Try to move |
Same here had to downgrade to 13.5.3 |
I encountered the same issue while using Next.js version 13.5.4. "Error: Cannot locate the module 'core-js/modules/es.array.map.js'." |
Getting the same with sharp on 13.5.4 deployed on Vercel. Edit: Downgrading to 13.5.3 fixed the issue. Issue seems to come from #56048 |
Same issue - both the dev and build works locally, but when deploying on Vercel:
|
also had to downgrade |
Log from Vercel: Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'lodash.mapkeys' imported from /var/task/node_modules/@nextui-org/theme/dist/chunk-RYOZQSNI.mjs It works in localhost only: https://ezpizza-next.vercel.app/menu The server side code:
|
Ok I downgraded to 13.5.3 and it worked |
I'm also experiencing missing Strangely, I'm not using |
Getting the exact same issue on getstaticprops with revalidate (isr) and getserversideprops when deployed to Vercel. Works flawlessly on local. Version 13.5.4 with next-i18next
|
I am having the same issue. In dev (local) mode works fine, but when deployed to Vercel gives the 505 error.
Removing the
|
This ensures we separate our ignore handling for next-server runtime entries and `.next/server` chunks. When these were combined our ignores caused modules that should were actually needed by user code to be excluded. Verified patch against the provided minimal repros ![CleanShot 2023-10-10 at 11 56 36@2x](https://github.com/vercel/next.js/assets/22380829/1dd83996-fa95-462a-98ed-485ce6c4d3f5) ![CleanShot 2023-10-10 at 12 01 08@2x](https://github.com/vercel/next.js/assets/22380829/c17c6147-0e3e-422b-bf2d-5fedfd6827ef) x-ref: #56048 (comment) Fixes: #56357
Still getting the issue with sharp on version 13.5.4 only running on vercel. I works correctly on development, but fails on production. Had to downgrade as well to 13.5.3 |
This Issue has not been stable released but has been fixed in canary. We need to wait for |
No report about this error? Why is it caused? |
Appears to be working in |
Next 13.5.6 came out but seems a shame there was no reactivity on this issue or at least a word! |
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. |
Link to the code that reproduces this issue
https://github.com/noreiller/next-missing-modules-in-standalone-pages
To Reproduce
npm i
npm i next@13.5.4-canary.4
npm run build
.next/standalone/node_modules/@kontent-ai/delivery-sdk/dist/cjs/mappers
only contains theindex.js
file.Current vs. Expected behavior
Starting from v13.5.4-canary.4, the directory
.next/standalone/node_modules/@kontent-ai/delivery-sdk/dist/cjs/mappers
only contains theindex.js
file while previously it contained all the required modules used in theindex.js
file.Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 Binaries: Node: 18.12.1 npm: 8.19.2 Yarn: 1.22.19 pnpm: 8.2.0 Relevant Packages: next: 13.5.4 eslint-config-next: 13.5.4 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: standalone
Which area(s) are affected? (Select all that apply)
Standalone mode (output: "standalone")
Additional context
In
node_modules
:In
.next/standalone/node_modules
:NEXT-1675
The text was updated successfully, but these errors were encountered: