-
Notifications
You must be signed in to change notification settings - Fork 306
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
Expected server HTML to contain a matching <head> in <html> #184
Comments
There is no fix mentioned in the link. |
@designbyadrian the fix is to open the app in incognito mode, yes I know, I think the same this is not a fix, but it's what they suggested. |
Ran into issue today and found the plugin that was causing this issue. The fix is as @OnlyC 's url provided. |
hydration fails due to extensions that you have in your browser, it has nothing to do with the remix, it's a problem in React. |
You are right |
Mine was becuase of "Apollo Client Dev tools" extension. Disabling it solved as suggessted. |
Yes, work for me in V2 |
solved it for me :) |
It won't solve it for every visitor to your website. |
well, only developers like to open the console. and there are many high-profile production websites that have consoles filled with red-wedding :) |
Fixed by restricting allowed sites list for my specific extension not related to react |
@Disorrder how did you do that? i tried googling for hacks like that but nothing worked lol. |
@deadcoder0904 I think modify the or use this code for manifest 2 chrome.browserAction.onClicked.addListener(function(tab) {
if(!tab.url || !tab.url.startsWith('http')){
return;
}
// do stuff
}); |
The problem is that this error can cause blocked renders, leading to empty pages or missing styles. It's not simply the issue of text inside the console. You can't force users to disable extensions or view in incognito mode. The real solution is to use a certain version of React that has a fix. Apparently, version 19 rc has it. Previously, it was the canary version of 18.3.0: 18.3.0-canary-a870b2d54-20240314 Set the exact version and overrides in package.json
|
@designbyadrian this works fine. I don't see the usual error and the production console is clean, but now i have another error only in development: |
Removing |
Have you experienced this bug with the latest version of the template?
yes
Steps to Reproduce
Expected Behavior
No errors
Actual Behavior
The text was updated successfully, but these errors were encountered: