-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
Application error in production build but not dev mode in next@13.4.12 #53273
Comments
This comment has been minimized.
This comment has been minimized.
Same here. Seems to be a problem with imports. For me I see that an import, that before was an object like { a: fn(), b:() } is now { default: { a: fn(), b: fn() }}, so the destructuring doesn't work as before, explaining the "is not a function" error. |
Downgrading Interestingly, deploying to Vercel still doesn't work. Somehow their build is different than building locally. |
This will be fixed by swc-project/swc#7702 |
This closed issue has been automatically locked because it had no new activity for 2 weeks. 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)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/peterolson/next-cytoscape-bug
To Reproduce
Clone the repository at https://github.com/peterolson/next-cytoscape-bug and run
npm install
,next build
andnext start
.Uses the following dependency:
Relevant code as follows:
Describe the Bug
Page renders two-node graph as expected with
next dev
development mode.When running in production mode using
next build
andnext start
, I get this error:Application error: a client-side exception has occurred (see the browser console for more information).
with the following error in the browser console:
The error does not appear in next version 13.4.8 or below.
Expected Behavior
The expected behavior is seen when running
next dev
or by using next version 13.4.8 or below.The following two-node graph should be rendered without any errors:
Which browser are you using? (if relevant)
Microsoft Edge Version 115.0.1901.183
How are you deploying your application? (if relevant)
next start
The text was updated successfully, but these errors were encountered: