-
Notifications
You must be signed in to change notification settings - Fork 178
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
TypeError: Cannot read property 'body' of undefined - Fragment in *.graphql file does't load #64
Comments
@fokot thanks for reporting — after poring through your fork, i was able to reproduce the issue, and distilled it down to this line:
basically (after checking with @stubailo), since source is now no longer enumerable, when we since the webpack loader requires the intermediary "codegen" step, i don't think we'll be able to use couple of options - [email protected] should continue to work as expected, but is missing a couple of bugfixes. in the meantime, i'm looking for an alternative solution and will add a test to make sure we're capturing this particular use-case. |
here's a super hacky short-term fix that i drummed up: jnwng@739722d that should unblock you while we figure out a better way to get this to work properly. |
I was in hurry, so my workaround was using just plain js files but I will definitelly move to new graphql-tag when this is resolved:
|
this should be resolved by #65 and is available in v2.1.0 |
You can take a look on example here fokot/GitHunt-React@962e568
If fails with error
Also botch fragment looks almost the same.
The text was updated successfully, but these errors were encountered: