This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Development environment works, but Route /_not-found couldn't be rendered statically
error in production builds.
#1407
Labels
Description
Hello, first of all, I would like to thank you for developing
next-intl
.While applying this module to a project that uses Next.js app router, I faced the following problem:
In the development environment, the translation works fine without any errors, but when you do
next build
for production, the build fails with the following error:It looks like there is already an issue with the same problem as this one. However, the issue is closed and none of the solutions there worked for me:
#521
There is a reproducible project included in the reproduction course below: (https://github.com/jooy2/nextapp-template)
It's using Next.js 14.2.15, and there are third-party libraries like Material UI and Redux, but I've minimized their use in the project above to a single page.
Could you please check what part of my project is causing the problem, I would like to know if this is due to something I'm doing wrong or if it's a bug in
next-intl
.Thank you.
Verifications
Mandatory reproduction URL
https://github.com/jooy2/nextapp-template
Reproduction description
I am using:
Steps to reproduce:
npm i
npm run build
.Expected behaviour
The Next.js build should perform without errors.
The text was updated successfully, but these errors were encountered: