Open
Description
I add difficulties to make it work under these conditions:
- es6 webpack configuration file (webpack.babel.js)
- graphql-js as configuration option
getting the error: "Schema must be an instance of GraphQLSchema" (schemaSource was always equal to {}
in https://github.com/graphcool/graphql-config/blob/master/src/index.ts#L98)
I had to remove react-relay plugin from .babelrc:
{
"presets": [
"es2015",
"stage-0",
"react"
]
}
and put it back in webpack.babel.js, in the babel options of the webpack loader:
{
"presets": [
"es2015",
"stage-0",
"react"
],
"plugins": ["react-relay"]
}
Maybe it's obvious but it wasn't to me. It would ne nice to have this referenced somewhere.
Metadata
Assignees
Labels
No labels
Activity