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

Error: Unable to find element with ID ## #1470

Closed
couturecraigj opened this issue Jul 11, 2017 · 3 comments
Closed

Error: Unable to find element with ID ## #1470

couturecraigj opened this issue Jul 11, 2017 · 3 comments

Comments

@couturecraigj
Copy link
Contributor

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?

@KyleAMathews
Copy link
Contributor

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.

@couturecraigj
Copy link
Contributor Author

So, I wrote something out last night and submitted a pull request this morning. If you want to take a look #1480 .

@KyleAMathews
Copy link
Contributor

Fixed in #1480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants