Cannot find module ‘next/dist/compiled/source-map’

For me it is not fixed at all, everything builds fine, getting this error in the logs:

Cannot find module ‘next/dist/compiled/source-map’
Require stack:

  • /var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js
  • /var/task/___next_launcher.cjs
    Did you forget to add it to “dependencies” in `package.json`?
    Node.js process exited with exit status: 1. The logs above can help with debugging the issue.

This looks like a different error than what other’s reported for the now resolved incident, so I moved this to it’s own thread.

  • Does the build fail and show this error message? Or does the deployment succeed and this error appears in the runtime logs?
  • Do you see the same error if you manually deploy an older version of the project?
  • What at the build and deployment settings for the project?

It compiles successfully and then just shows this error. Locally it serves fine and build fs fine as well.
The error is in the logs.

Do you have an older preview deployment that worked as expected? Please try to redeploy that one and let me know if the newly deployed copy runs into the same error

actually I started deploying today, so I don’t have any working version that was deployed , cause of the outage.

If it’s still not working, can you share the dependencies/devDependencies from package.json?