Closed elliottsj closed 5 years ago
I have same error in production
Same
Module not found: Can't resolve 'graphql-anywhere/lib/async' in 'C:\git\vqadmin\node_modules\apollo-link-state\lib'
(node:16944) UnhandledPromiseRejectionWarning: Error: Cannot find module 'C:\git\vqadmin\.next\build-manifest.json'
I had to add a resolution to my package.json to work around it for now
"resolutions": {
"graphql-anywhere": "4.1.0",
}
Same, this was a transitive dependency of apollo-boost 0.1.4.
The same error occurs even when using @nuxtjs/apollo. https://github.com/nuxt-community/apollo-module
I added this to my dependencies and it works for now
"dependencies": {
...
"graphql-anywhere": "4.1.0",
...
}
I added this to my dependencies and it works for now
"dependencies": { ... "graphql-anywhere": "4.1.0", ... }
I can confirm that fixed it for me too
+1 on this fix
"dependencies": {
...
"graphql-anywhere": "4.1.0",
...
}
Thanks a ton for sharing this fix @lakshyaranganath, I ran into this error after doing a fresh npm install today an hour before a big UI prototype demo... almost didn't have a UI to demo!
That was a close one...
Thanks for reporting this all - this was fixed in https://github.com/apollographql/apollo-client/pull/4503, and will de deployed shortly.
We found a different way of solving this problem: https://www.apollographql.com/docs/react/essentials/local-state.html#migrating
apollo-link-state imports the path
'graphql-anywhere/lib/async'
, but this does not work with graphql-anywhere@4.2.0 since it now publishes this file aslib/async.umd.js
:Should this have been considered a breaking change by graphql-anywhere? Not sure if the
lib/async
module is considered part of its public API.