NexJs and getServerSideProps

Hi!
NextJS project, pages routing
Until yesterday, all the deployments of the project were working.

But since yesterday, some pages have been giving the 500 Internal server error.
Namely, those that use the getServerSideProps function, which calls the serverSideTranslations function from the next-i18next library.

The next-i18next library has not been updated.

Only today I discovered where it breaks - and immediately updated next, i18next. But nothing helps.

Everything works fine locally
The Netlify CLI build works well too

As soon as it is built on app.netlify is breaking down.
There are examples:
https://deploy-preview-609--v-cana.netlify.app/projects/1 - I deleted serverSideTranslations on this page. - and it’s work

https://deploy-preview-609--v-cana.netlify.app/projects/1/edit - I left it here. and it fall

Could you tell me where to dig?
it seems that I can try to replace it with getStaticProps.
But I need to understand what happened. And could it be on your side?

I think it nextjs issue.
Thank you.
I don’t now can i add link but i can past decision:

Removing the ‘^’ of the next-version worked for me.
before:
"next": "^13.5.3", "next-i18next": "^14.0.3", "i18next": "^23.5.1", "react-i18next": "^13.2.2"
after:
"next": "13.5.3", "next-i18next": "^14.0.3", "i18next": "^23.5.1", "react-i18next": "^13.2.2"

Hello @alexzed , have you seen this error again? I am facing this issue when I update next to v14. For some reason I think I am facing your issue, if I downgrade to v13 everything works as expected but it fails using v14. Please, let me know if you found this issue on v14 and if you were able to fix it. Thanks.

PS. This is the actual error from the function logs:

Error [ERR_REQUIRE_ESM]: require() of ES Module /var/task/next-i18next.config.js from /var/task/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js not supported.
next-i18next.config.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains “type”: “module” which declares all .js files in that package scope as ES modules.
Instead either rename next-i18next.config.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change “type”: “module” to “type”: “commonjs” in /var/task/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).

at mod.require (/var/task/node_modules/next/dist/server/require-hook.js:65:28)
at /var/task/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:100:46 {

code: ‘ERR_REQUIRE_ESM’
}

Duplicate of: NextJS Translation Error