-
-
Notifications
You must be signed in to change notification settings - Fork 47
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-i18next incompatiblity #115
Comments
@rkurbatov Do you have a minimal bug reproduction that we can look into? |
I traced down the issue and it seems like it's next-i18next package that causes the problem. Here I have the minimal repo: https://github.com/rkurbatov/acq-test It works even if I use
NextJS has complete mess with modules, imports and module types and seems like pigment makes someing additional with such imports breaking it even more. |
cc @brijeshb42
Can I avoid compilation of that module somehow? Or processing of it by pigment, whatever? |
The issue resolved after updating next-i18next package |
Steps to reproduce
Hi there. We have pretty old project with NextJS 12 and @emotion that has to be upgraded.
There are lots of dependencies, the whole circle of problems so I wanted initially to use the codemod and some manual changes to replace @emotion with Pigment CSS while staying on NextJS 12 (later versions don't support @emotion).
The problem is the application is failing now on the app.prepare() stage if I try to run it. Just a silent fail with status 0. No debugging messages, cannot catch anything. And the build process simply hangs running indefinitely.
The problem disappears when I remove withPigment() wrapper from nextjs config. That doesn't happen on NextJS 13 though there I have other non-related issues so I just want to make smal incremental updates.
I know that Pigment supports NextJS 12 but seems like there is something preventing it to work properly. Had somebody similar issues?
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: NextJS12
The text was updated successfully, but these errors were encountered: