-
Notifications
You must be signed in to change notification settings - Fork 43
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
Next.js + App router + [lang] folder #649
Comments
Hi, seems like your repository is not available. I've no experience with the app directory in NextJS, but make sure that you're only calling Please make the repository available or add a reproduction, then feel free to re-open |
Hi, it obviously works better with a public repository ;) Btw, this repo is the 'recommanded way' to build multilingual websites with Next.js, the structure with a layout.js in the [lang] folder is the new way to go. |
Thanks for the extended reproduction. I'm facing the same issue (duh). It seems like this is not an issue in this library, but one from the underlying Intercom snippet itself. I suggest asking it the Intercom support or asking it on their forum. I'll leave this issue open for now. Please come back if, after all , this actually is an issue in this library |
I also encountered the same problem, is there any progress? |
Hello, I had the same problem, I made a call to |
is there any update, i got same issue |
For anyone who calls
|
Facing the same issue in our project, which is set up exactly as "Next.js + App router + [lang] folder", too. We can confirm that this is, indeed, the issue of Intercom itself, since we don't use Seems like Intercom looses track of What we do now in or project is setting I think we'll migrate to Hopefully Intercom fixes this. I think it's best to keep this GitHub issue open, very useful info for people who have to deal with this error that is brought upon us by non-open-source Intercom. |
The problem really exists, with the same conditions, I spent 5 hours trying to solve it, now I will try to follow the advice of other people here, thank u guys |
Adding |
I solved it by using the check function above:
|
Describe the bug
The package does not work well with Next.js + App router + [lang] folder.
To Reproduce
The same issue occurs if you have a separate layout.js file in a sub-folder.
The intercom script does not seem to be able to re-attach itself.
Repository
Here is a repository that reproduces the issue: https://github.com/ChezMose/MyApp
Expected behavior
It succeeded in having it all work by putting the tag in a layout.js file in the the /app root folder (see try 3 in the repo).
However this does not allow to have a lang attribute in the which is a no-go for SEO !
I believe there could be a way to re-attach the widget properly even if the layout file changes.
Yes, as a workaround, I can always force a full-refresh when switching language, but that's kind of meh for Next.js website.
The text was updated successfully, but these errors were encountered: