Apollo-link-rest: Dependency issues when upgrading to Apollo Client 2.5

Created on 26 Feb 2019  ·  5Comments  ·  Source: apollographql/apollo-link-rest

When upgrading to Apollo Client 2.5, we are running into dependency issues when attempting to run the bundler in a React Native environment:

error: bundling failed: Error: Unable to resolve module `graphql-anywhere/lib/async` from `<redacted>/node_modules/apollo-link-state/lib/bundle.umd.js`: Module `graphql-anywhere/lib/async` does not exist in the Haste module map

We have attempted to install graphql-anywhere to resolve this issue, to no avail.

Most helpful comment

It's not working in "@apollo/client": "^3.0.0-beta.43",

All 5 comments

@benjamn Any movement on this? I'm really hoping to get upgraded to 2.5 to (hopefully) resolve some link-state issues.

To all who are watching this, this is fixed in Apollo Client 2.5.1

After fresh reinstall it stops working:
изображение
For some reason graphql-anywhere can't be installed (no dir in node_modules). Example:
https://codesandbox.io/s/2zxv78oyrp

If you install it manually (npm i graphql-anywhere) it works again

It's not working in "@apollo/client": "^3.0.0-beta.43",

have the same issue on "@apollo/client": "^3.1.0"

Was this page helpful?
0 / 5 - 0 ratings