-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
Server Translation not working if client use Grafana Faro #1711
Comments
I had a brief look at your example and can confirm there's a really weird bug here. As this happens as soon as you add Faro, maybe you want to investigate with them? I'm not sure if they do anything funky like modifying Next.js internals or so, the behavior looks unlike anything I've seen before honestly. |
Thank you for your report! From the currently available context in this issue, it's unclear wether the erroneous behavior is caused by Next.js, If you're able to isolate the issue to Thank you for your understanding! |
After debugging the provided repo, it seems the issue is caused by OpenTelemetry that Faro uses internally. OpenTelemetry overrides the After the first render and Faro initialisation, the promise retrieved by |
Oh wow, thanks for digging into this @SalmenBejaoui! I found this in the Zone.js docs:
However, since it's used as part of OpenTelemetry, the Next.js docs recommend this package and it is very popular, maybe out of pragmatism Let me have a look … |
I've added #1719 to address this (pre-release available as It seems like it fixes the error in your reproduction. Can you confirm that this version works for you? |
Fixes #1711 Available as `next-intl@0.0.0-canary-84fe6d0`
Description
When using Grafana Faro, which is a client side observability tool for react application, next-intl stop working only for server side components
and print on server side console the following error
Error: MISSING_MESSAGE: No messages were configured on the provider.
if you remove the faro component from the reproduction URL example, it works.
Verifications
Mandatory reproduction URL
https://github.com/bozzelliandrea/next-faro-intl
Reproduction description
Expected behaviour
Localization working with Grafana Faro when switching locale.
The text was updated successfully, but these errors were encountered: