-
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
Building from HTML source #172
Comments
So this is not a very obvious at all error but since I just ran into it when playing around with the default starter, I'm pretty sure the reason is you're missing a react.js wrapper for HTML content. Try creating a file at
|
An action item here would be to add a check in Gatsby if the necessary wrapper exists and if not, throw a very clear error. |
Ah, yeah, that works (minus the |
Oops on the Yeah, I removed wrappers from core a while ago but it is super confusing when they're missing. I might add them back and improve documentation around what wrappers are and how to override them (which most projects will want to. That or ensure all the official starters have included "starter" wrappers for each supported content type e.g. md, html, and soon toml, yaml, and json. |
Use fork of html-to-jsx
Use fork of html-to-jsx
Use fork of html-to-jsx
Hey there!
I can't seem to generate static pages when I have an HTML page in the hierarchy -- it's completely possible that I'm doing something wrong.
In
/pages
if I create a new file (or folder with an index.html file), saytest.html
with the contents:When I run
gatsby build
it fails and throws.Error: TypeError: Cannot read property 'data' of undefined
The text was updated successfully, but these errors were encountered: