Comments (7)
Hey @skordesign. We should have fixed this issue with #2313.
It will be officially released onto the Netlify platform next week but you can install @netlify/plugin-nextjs@rc
or @netlify/[email protected]
if you want to test it before.
Let us know if it doesn't fix your issue. Thanks.
from next-runtime.
I've installed @netlify/[email protected] and I get a Internal Server Error
ERROR Error: Cannot find module 'next/dist\client\components\static-generation-async-storage.external.js'
Require stack:
- /var/task/.next/server/app/[...page]/page.js
- /var/task/node_modules/next/dist/server/require.js
- /var/task/node_modules/next/dist/server/next-server.js
- /var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js
- /var/task/___netlify-handler.js
- /var/runtime/index.mjs
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at /var/task/node_modules/next/dist/server/require-hook.js:54:36
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at mod.require (/var/task/node_modules/next/dist/server/require-hook.js:64:28)
at require (node:internal/modules/cjs/helpers:121:18)
at 25319 (/var/task/.next/server/app/[...page]/page.js:1:617)
at __webpack_require__ (/var/task/.next/server/webpack-runtime.js:1:146)
at 71775 (/var/task/.next/server/chunks/683.js:1:79793)
at __webpack_require__ (/var/task/.next/server/webpack-runtime.js:1:146) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/var/task/.next/server/app/[...page]/page.js',
'/var/task/node_modules/next/dist/server/require.js',
'/var/task/node_modules/next/dist/server/next-server.js',
'/var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js',
'/var/task/___netlify-handler.js',
'/var/runtime/index.mjs'
]
}
from next-runtime.
Hi, the error I mentioned above only happens when I build and deploy on my local machine (Windows 11). After I switched to Github Action using Linux, it worked fine.
from next-runtime.
Thanks for the fix! Was having the same issue but not locally, only on Netlify deployment, I saw this issue and it instantly fixed it. Thank you, thank you, thank you so much! It was driving me crazy trying to figure out what was going on. But thanks to your hard work @MarcL and everyone else who helped I got a food pantries service back online. Amazing work, thanks so much!
from next-runtime.
I got this error when trying to access my new live API route. Installing @netlify/plugin-nextjs@rc fixed it.
from next-runtime.
i upgraded to 4.41.2
but it didn't fix the issue. now i get an internal server error. happens only on netlify, not locally.
from next-runtime.
Having same problem with
"next": "^14.0.4" "@netlify/plugin-nextjs": "^4.41.3"
pnpm run build && pnpm run start
works fine
netlfiy deploy --build --prod
builds fine, but upon visiting the website it shows Cannot find module 'styled-jsx/package.json'
from next-runtime.
Related Issues (20)
- [Bug]: `Runtime.ImportModuleError - Error: Cannot find module 'follow-redirects'` when deploying with netlify-cli and pnpm HOT 7
- [Bug]: `Error: Cannot find module 'next/dist/server/future/route-modules/pages/vendored/contexts/amp-context'` in NextJS preview mode HOT 40
- [Bug]: Middleware rewrites cause `TypeError: Invalid URL` when pointing to a directory in `public` HOT 3
- [Bug]: Middleware rewrites cause infinite redirect loop when pointing to a directory in `public` HOT 2
- [bug]: `netlify dev` fails to run middleware HOT 1
- Cache headers returned from Middleware aren't respected HOT 7
- [Bug]: next.config.js > redirects is not respected HOT 8
- [Bug]: NextJS server page query param is not an array as expected HOT 2
- [Bug]: Error: Cannot find module 'next/dist/server/future/route-modules/pages/vendored/contexts/router-context' HOT 4
- [Bug]: ISR and next/link Prefetch Cause RSC Page Return Content in self.__next_f.push Function With App Dir on Next.js 14.0.3 HOT 3
- Failure toinstall[Bug]: HOT 3
- [Bug]: React Context not persisting across client side page transitions. App router. HOT 4
- [Bug]: Server actions not working with static rendering on Netlify HOT 1
- [Bug]: API Routes return 502 due to Headers reference error HOT 1
- [Bug]: @netlify/plugin-nextjs is messing up everything HOT 2
- [Bug]: ENOENT internal error with monorepo setup HOT 7
- [Bug]: Plugin "@netlify/plugin-nextjs" internal error: ENOENT: no such file or directory with runtime 5.0.0-beta.7 HOT 9
- [Bug]: Issue with data revalidation after new build HOT 3
- [Bug]: NETLIFY_NEXT_PLUGIN_SKIP no longer works in v5 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-runtime.