Cannot find module 'next-intl/client' or its corresponding type declarations in the App router example #537
Replies: 2 comments 5 replies
-
It seems that the exports for @amannn I mean, version 3 adds the support for React Server Components, but I guess we still need those client APIs for some occasions:
|
Beta Was this translation helpful? Give feedback.
-
So what's the solution? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
when I look at this next-intl app router example here:
https://next-intl-docs-git-feat-next-13-rsc-next-intl.vercel.app/examples/app-router
I want to try it out. But I always get the error:
Cannot find module 'next-intl/client' or its corresponding type declarations
when I try to import
import { usePathname, useRouter } from 'next-intl/client';
I used next-intl latest as it is in the example, I also used the most current beta version "next-intl": "^3.0.0-beta.19", and the next-intl 3.0 release candidate.
Its always the same error? I do not understand why as its the same as in the example.
Beta Was this translation helpful? Give feedback.
All reactions