You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./state/translate.jsx:4:0Module not found: Package path ./link is not exported from package D:\WorkHouse\cache-hit\jujiuipcappui\node_modules\next-intl (see exports field in D:\WorkHouse\cache-hit\jujiuipcappui\node_modules\next-intl\package.json) 2 | 3 | import { useTranslations } from 'next-intl';
> 4 | import Link from 'next-intl/link'; 5 | import { useRouter, usePathname } from 'next-intl/client'; 6 | 7 | export default Link;https://nextjs.org/docs/messages/module-not-foundImport trace for requested module:./app/[locale]/nextui/(main)/device/page.jsx
Mandatory reproduction URL (CodeSandbox or GitHub repository)
⨯ node_modules\next\dist\client\components\static-generation-bailout.js (33:14) @ staticGenerationBailout ⨯ Error: Page with `dynamic = "error"` couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering at stringify (<anonymous>)digest: "1656766269"null
Yep, as you've noticed createSharedPathnamesNavigation is the replacement.
In regard to your second point about static rendering: This has been addressed in #633 ([email protected]). There is however a change necessary that was missing in the release notes previously, please see Changes to NextIntlClientProvider.
Description
Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://github.com/Cache-Hit-Shanghai/jujiuipcappui
Reproduction description
When we update
next-intl
from v2.22.1 to v3.0.2, we get the error above.Expected behaviour
If
Link
is removed fromnext-intl/link
, would you please give us a substitution?The text was updated successfully, but these errors were encountered: