next-intl
next-intl copied to clipboard
404 Not Found: "No intl context found. Have you configured the provider?"
Description
next-intl@beta breaks with next@^13.4.10 and even canary - when using next-intl/link in your project. i think this bug is introduced by next itself, i created an issue on their side https://github.com/vercel/next.js/issues/53147 and just wanted to create a reference here if anybody stumbles upon it
Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://codesandbox.io/p/sandbox/elegant-joji-mxx7fn
Reproduction description
Steps to reproduce:
- Open reproduction url
- See error: No intl context found. Have you configured the provider?
Expected behaviour
Next.js has to fix it
Thank you so much for analyzing the bug and creating a good reproduction! Hopefully this gets fixed soon on the Next.js side! 🙏
I'm new to next-intl
, but I don't see where the use of next-intl/link
is documented? I thought we had to create our own with createLocalizedPathnamesNavigation
and createSharedPathnamesNavigation
from the next-intl/navigation
package.
I thought we had to create our own with
createLocalizedPathnamesNavigation
andcreateSharedPathnamesNavigation
from thenext-intl/navigation
package.
Yep, that's the case. The reproduction above uses an older pre-release beta version of next-intl
which had a next-intl/link
at the time—this API is no longer available.
Seems like this was resolved upstream.