Build with next-i18next error: Error: Cannot find module './next-i18next.config.js'

Ok, after trying almost everything, I found this setting that fixed my build. Instead of target: serverless use:

target: "experimental-serverless-trace",

Please anyone can explain why this setting is necessary to use next-i18next?

You can see my site online at:

And my site repository, if it helps:

My deploy settings are:

Build command: next build
Publish directory: Not set

2 Likes