Migrate from Babel to Nextjs SWC encountering Minified React error #63870
-
SummaryWhen I removed my current .babelrc in order to force NextJS 13 using SWC instead. It's showing the error: Error: Minified React error #130. But when I add the .babelrc file again everything worked normally .babelrc file {
"presets": ["next/babel"],
"plugins": [
["babel-plugin-styled-components", { "ssr": true, "displayName": true, "preprocess": false }],
"inline-react-svg"
]
} I suspect it happens because the library styled-components but not sure how to fix. Has anyone encountered this situation? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
LeVuMinhHuy
Mar 29, 2024
Replies: 1 comment
-
I found the reason, it's
Thank you ! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LeVuMinhHuy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the reason, it's
inline-react-svg
cause this issue. Remove .babelrc file and add this config to webpack insidenext.config.js
and it will workThank you !