importing "next-i18next/middleware" in custom server works fine in "next-i18next ^4.2.1", but fails in latest version
server/index.ts:3:35 - error TS2307: Cannot find module 'next-i18next/middleware' or its corresponding type declarations.
import nextI18NextMiddleware from 'next-i18next/middleware';
"next-i18next": "^6.0.3"
I don't know why it was closed without comment or a link to a similar issue.
middleware file doesn't exist in next-i18next latest version
On Mon, Oct 5, 2020 at 6:47 PM Rafael Santos Sá notifications@github.com
wrote:
Why was it closed? What is the instruction?
The same has happened in a project I started to touch.But curiously, if I simply disable the call to this middleware, the
project works with the translations applied in the server (which is
custom). I wonder why is this middleware for? I can't find anything in the
docs.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/isaachinman/next-i18next/issues/841#issuecomment-703929325,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACLKJP5AZBY6UH5F7JQGL3SJJEGRANCNFSM4R76DFMQ
.
@nataliaroque77 In my opinion, similar issues were already discussed before. You can find the answer of @isaachinman
on https://github.com/isaachinman/next-i18next/issues/833
Thank @eunsukimme for let me know about #833
Great news about custom server no longer need it for next-i18next latest version.
Most helpful comment
I don't know why it was closed without comment or a link to a similar issue.
middleware file doesn't exist in next-i18next latest version
On Mon, Oct 5, 2020 at 6:47 PM Rafael Santos Sá notifications@github.com
wrote: