GithubHelp home page GithubHelp logo

Comments (7)

MarcL avatar MarcL commented on June 8, 2024 3

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.

skordesign avatar skordesign commented on June 8, 2024

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.

skordesign avatar skordesign commented on June 8, 2024

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.

OOCAZ avatar OOCAZ commented on June 8, 2024

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.

Andre-Diamond avatar Andre-Diamond commented on June 8, 2024

I got this error when trying to access my new live API route. Installing @netlify/plugin-nextjs@rc fixed it.

from next-runtime.

szamanr avatar szamanr commented on June 8, 2024

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.

maslomeister avatar maslomeister commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.