-
Notifications
You must be signed in to change notification settings - Fork 26k
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
Next 13.4.10-canary.3 Standalone mode breaks app #52615
Comments
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
Hey sorry, I added a reproduction repo. |
If the removal of the jsx-runtime is intentional, then I'll close this issue. |
@khuezy can you provide a repro that does not involve SST to help us triage if it's a SST bug or not? |
@khuezy i have exactly the same issue, don't know what to do. |
@feedthejim thanks for replying. I'll close this as it's not a nextjs issue. @wssjq198913 if you're using SST, this PR should fix it: sst/open-next#159 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Standalone mode (output: "standalone")
Link to the code that reproduces this issue or a replay of the bug
Reproduction Repo
To Reproduce
This setup deploys Nextjs as a standalone app running on AWS. So you need to have your ~/.aws/credentials set up in order to deploy the app
pnpm install
npx sst deploy --stage dev
Internal Server Error
npx sst remove --stage dev
Question: Why is it trying to load
react/jsx-runtime
?@logstream
2023/07/13/[$LATEST]aaa75d180aaf...
@message
2023-07-13T00:37:28.806Z undefined ERROR Failed to override Next.js require hooks. Error: Cannot find module '/var/task/node_modules/react/jsx-runtime.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1096:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1089:15)
at resolveExports (node:internal/modules/cjs/loader:565:14)
at Module._findPath (node:internal/modules/cjs/loader:634:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
at /var/task/node_modules/next/dist/server/require-hook.js:1:3469
at Function.resolve (node:internal/modules/cjs/helpers:116:19)
at hse (file:///var/task/packages/app/index.mjs:31:7405)
at gj (file:///var/task/packages/app/index.mjs:31:7019)
at file:///var/task/packages/app/index.mjs:31:10451 {
code: 'MODULE_NOT_FOUND',
path: '/var/task/node_modules/react/package.json'
}
Describe the Bug
Most likely introduced in this PR: #52206
Expected Behavior
Standalone deployments should work.
13.4.10-canary.2
works but not 3 and above.Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Deploying Standalone Mode to AWS via SST and OpenNext
The text was updated successfully, but these errors were encountered: