You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: production build stuck when using NextJS 12 #2445
I have searched the issues of this repository and believe that this is not a duplicate.
Describe the bug
When trying to generate a production build with NextJS 12, the process gets stuck. It appears to have something to do with the fonts in the global styles. When leaving only 3 @font-face in the styles everything works fine.
To Reproduce 🕹
Steps to reproduce the behavior:
Create a new NextJS app
Add react-rainbow-components dependency
Use any component in the app
Try to build for production (dev works fine)
Expected Behavior 🤔
The app should build correctly.
Current Behavior 😯
The build process hangs forever.
Your Environment 🌎
Desktop (please complete the following information):
I also use next version 12.1.1 and build stuck forever.
but now I can build success workaround by import everything from react-rainbow by using dynamic
I also use next version 12.1.1 and build stuck forever. but now I can build success workaround by import everything from react-rainbow by using dynamic
I also use next version 12.1.1 and build stuck forever. but now I can build success workaround by import everything from react-rainbow by using dynamic
here example
Activity
afu-hive commentedon Jan 19, 2023
I also use next version
12.1.1and build stuck forever.but now I can build success workaround by import everything from
react-rainbowby usingdynamichere example
miratcan commentedon Jan 30, 2023
Which library are you using? this? https://www.npmjs.com/package/@next-tools/dynamic
afu-hive commentedon Jan 30, 2023
It's provide from nextJS. you can import directly from nextjs
more info https://nextjs.org/docs/advanced-features/dynamic-import
aestheticsdata commentedon Feb 28, 2023
not working for me. My app is with NextJS v13. The issue was still there with NextJS v12.
Upgrading to Node v18 do not change anything.