-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Error: Unable to find element with ID ##
#1470
Comments
Yes! We need to start a deployment page in general so this would be a good start. Perhaps deploying-gatsby.md and make a debugging section near the end addressing common problems like this. |
So, I wrote something out last night and submitted a pull request this morning. If you want to take a look #1480 . |
Fixed in #1480 |
This was referenced Sep 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thought I would post this for others benefit.
Spent plenty of time trying to debug this issue. If you are using a hosted service make sure that they are not minifying your html (was using cloudflare). This eliminates comments that signify
data-reactids
when the client grabs hold e.g.<!-- react-text: 28 -->
. This is a react specific thing and you need to make sure it is not being eliminated when doing static sites. SSR does not seem to demonstrate this issue because it is not an html file but a generated string so this should probably be noted in the documentation. Do you want a pull request for this @KyleAMathews?The text was updated successfully, but these errors were encountered: