-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
yarn build with Webpack 5 + next-18next fails with Error: ENOENT: no such file or directory #24729
Comments
deactivating webpack5 does not seem to work (at least for me) Theoretically (semver), v10.2.0 should have been v11.0.0 |
Interesting 🤔 Because for me, this commit: zaratan/index@2099c72 fixed the problem |
@zaratan Can you also try this on the simple example of next-i18next? |
Not right now. I'm not on a computer at the moment. Sorry 😅 I'll try to remember to test that tomorrow. |
Yes, this does indeed work. But I don't see any reason as why I would wait out on Webpack5. Also next-i18next does work on the production build. it compiles fine. it just crashes the dev server in an infinite loop for me. so basically it keeps loading localhost and doesnt throw any error. |
may be related: i18next/next-i18next#1202 (comment) #24700 |
Hi guys, facing the same issue but not using webpack 5. Please check out this thread #25311 |
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
|
I'm having this issue too. Deactivating webpack5 in the config did nothing :( |
This issue has been automatically closed because it wasn't verified against next@canary. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you. |
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. |
What version of Next.js are you using?
10.2.0
What version of Node.js are you using?
v14.15.3
What browser are you using?
N/A
What operating system are you using?
macOS + Vercel (Bug appear in both)
How are you deploying your application?
Vercel
Describe the Bug
I tried adding next-i18next on a brand new project.
I followed the installation path described in the repo. and everything was working in dev.
Running
yarn build
gives me back:If I deactivate Webpack 5 in next.config.js with:
I don't have the error anymore. Also I have one more supposedly page generated:
Generating static pages (10/10)
Expected Behavior
I should not have an error.
To Reproduce
You can clone this repo at the right commit: 496ede5fe23c79e3227da1622155123ccf83e04b.
This commit was basically:
Run
yarn build
The text was updated successfully, but these errors were encountered: