babel-plugin-inline-import-graphql-ast
Advanced tools
Comparing version 2.1.1 to 2.1.2
# ChangeLog | ||
## v2.1.2 (January 26, 2018) | ||
### Maintenance | ||
* Add "Known Issues" section to README.md | ||
## v2.1.1 (January 25, 2018) | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "babel-plugin-inline-import-graphql-ast", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Babel plugin to make .gql/.graphql files importable", | ||
@@ -5,0 +5,0 @@ "author": "Alexander Roberts <detrohutt@gmail.com>", |
@@ -5,2 +5,12 @@ # Babel Inline Import GraphQL AST | ||
## Known Issues | ||
#### `Cannot read property 'type' of undefined` in file containing .gql/.graphql import | ||
I'm putting this right at the top because if you use this package to any real degree you'll almost certainly experience this error at some point and it can be hard to track down if you don't know what it is. This is caused by a bug in Babel 6. | ||
A PR has been submitted to Babel [here](https://github.com/babel/babel/pull/7205) and hopefully they'll merge it and make a patch release soon. | ||
In the meantime, there's an easy, although annoying, workaround. Just change the content of the file throwing the error in any way. The easiest and most reliable change I've found is to simply add an empty comment `//` on it's own line when this error occurs. As the file gets updated over time, you can later remove the empty comment. I usually only have 1 or 2 of these in my project at any given time. | ||
## Known use cases | ||
@@ -7,0 +17,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14050
132