Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Not Found: "No intl context found. Have you configured the provider?" #423

Open
ChiefORZ opened this issue Jul 25, 2023 · 3 comments
Open
Labels
bug Something isn't working upstream-issue This issue is caused by an upstream dependency (e.g. Next.js)

Comments

@ChiefORZ
Copy link

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 vercel/next.js#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:

  1. Open reproduction url
  2. See error: No intl context found. Have you configured the provider?

Expected behaviour

Next.js has to fix it

@ChiefORZ ChiefORZ added bug Something isn't working unconfirmed Needs triage. labels Jul 25, 2023
@amannn
Copy link
Owner

amannn commented Jul 25, 2023

Thank you so much for analyzing the bug and creating a good reproduction! Hopefully this gets fixed soon on the Next.js side! 🙏

@amannn amannn removed the unconfirmed Needs triage. label Jul 25, 2023
@amannn amannn changed the title No intl context found. Have you configured the provider? 404: "No intl context found. Have you configured the provider?" Aug 1, 2023
@amannn amannn changed the title 404: "No intl context found. Have you configured the provider?" 404 Not Found: "No intl context found. Have you configured the provider?" Nov 9, 2023
@amannn amannn added the upstream-issue This issue is caused by an upstream dependency (e.g. Next.js) label Nov 23, 2023
@maxijonson
Copy link

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.

@amannn
Copy link
Owner

amannn commented Apr 11, 2024

I thought we had to create our own with createLocalizedPathnamesNavigation and createSharedPathnamesNavigation from the next-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream-issue This issue is caused by an upstream dependency (e.g. Next.js)
Projects
None yet
Development

No branches or pull requests

3 participants