Closed github0013 closed 6 years ago
If you downgrade to graphql@^0.11
, does the problem go away? The Apollo ecosystem is still ironing out bugs with the new v0.12.
tried "graphql": "^0.11"
but then this time parcel
gives build errors / runtime errors (tried 1.2.1 1.3.0 1.3.1), and I am sorry I am a webpack-phobic..
What are the errors?
Based on this package.json, I just changed parcel-bundler
version.
{
"dependencies": {
"@types/react": "^16.0.28",
"@types/react-dom": "^16.0.3",
"apollo-client-preset": "^1.0.5",
"apollo-upload-client": "^7.0.0-alpha.1",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"graphql": "^0.11",
"graphql-tag": "^2.6.1",
"parcel-bundler": "1.3.1",
"react": "^16.2.0",
"react-apollo": "^2.0.4",
"react-dom": "^16.2.0",
"typescript": "^2.6.2"
}
}
Parcel is pretty new and still ironing out kinks; just recently they added support for .mjs
extension which may be important since we use it for our module
entry.
There have been a few new releases of apollo-upload-client
since this issue was filed too. If there is still an issue and you can determine a specific bug with apollo-upload-client
we can re-open and investigate further 😊
environments
When I was trying to have a query and a mutation on a component, I encountered this error. Very simplified reproductive code is below.
compose
to build your graphqlIf I remove
options
and use the client in ApolloProvider<ApolloProvider client={uploadClient}>
, then it will remove the error.Is it maybe how I build graphql is irregular?