-
Notifications
You must be signed in to change notification settings - Fork 86
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
nextjs 11: Runtime.ImportModuleError: Error: Cannot find module '../chunks/9033.js' #488
Comments
I tried disabling the |
And I got a (non) working example repo here: https://github.com/amuttsch/nextjs11-netlify-module-not-found |
Hi @amuttsch |
@ascorbic Thanks for the quick reply, adding the env var works 🎉 Do you have any timeframe when this feature will be stable? |
It should be soon. @eduardoboucas is just making sure that it's stable before unflagging it. |
Describe the bug
When deploying our website using next.js 11.0.1 we get the following error:
Using next.js 10.x the deployment works fine. We have also updated webpack to v5, as we used v4 before.
Building and running the website with
target: "server"
works locally.Additionally, I see the
9033.js
in theout_functions
folder of the executed function, but it seems like it is not bundled in the actual netlify bundle.If you need any additional information, please let me know.
To Reproduce
See repo with example code: https://github.com/amuttsch/nextjs11-netlify-module-not-found
We deploy our website using the netlify cli:
Expected behavior
The website to load properly :-)
Versions
If you're using the CLI to build
If you're using file-based installation
The text was updated successfully, but these errors were encountered: