Replies: 1 comment
-
Hi, Turns out my VSC typescript server went crazy... I had other weird behaviors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I'm Mike from France.
I'm new to NextJS and i'm trying to implement i18n with next-intl and i18n routing.
I'm using the nextjs app router.
So far,
next-intl
seems really great, powerful and easy to use !I used this doc as reference : https://next-intl-docs.vercel.app/docs/getting-started/app-router/with-i18n-routing
Also used this demo app as a reference : https://github.com/amannn/next-intl/tree/main/examples/example-app-router
In my LocaleLayout ([locale]/layout.tsx), i'm trying to import
NextIntlClientProvider
like in this examplehttps://github.com/amannn/next-intl/blob/main/examples/example-app-router/src/app/%5Blocale%5D/layout.tsx
I have this error and i can't figure out why :
Cannot find module 'next-intl' or its corresponding type declarations.
next-int
l seems to be correctly installed, since i can import other modules and use them like :getMessages()
return the correct translations i set up and configured, but i can't import and use the client modules/components because the'next-intl'
module can't be found.Can somebody help me here ?
Thank you !
Mike
Part of my package.json
Beta Was this translation helpful? Give feedback.
All reactions