Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Upgrade to 0.8.2 fails to resolve react-apollo module #427

Closed
0x6e6562 opened this issue Jan 19, 2017 · 3 comments
Closed

Upgrade to 0.8.2 fails to resolve react-apollo module #427

0x6e6562 opened this issue Jan 19, 2017 · 3 comments

Comments

@0x6e6562
Copy link

Steps to Reproduce

After upgrading

  • apollo-client@0.5.26
  • react-apollo@0.6.0

to

  • apollo-client@0.6.0
  • react-apollo@0.8.2

I run into the long running 4968 issue:

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 670): UnableToResolveError: Unable to resolve module react-apollo from

Buggy Behavior

I've followed the 4968 issue to see if there is a react native solution for this.

I think I tried every single suggestion people have posted. The only solution I have found is to revert back to the previous version.

By flipping between the previous and updated versions I can reliably make this problem occur and then go away again.

Does anybody know of any apollo specific issues or things one could try?

@0x6e6562
Copy link
Author

0x6e6562 commented Jan 19, 2017

I think I might have made some progress, but I still need to test this:

$ rm -rf node_modules/react-apollo
$ git clone https://github.com/apollostack/react-apollo node_modules/react-apollo
$ cd node_modules/react-apollo
$ vim package.json

After this I updated the peer dependency to apollo-client@0.6.0 in package.json.

Then I compiled the typescript

$ npm run compile

And now the react-apollo dependency appears to resolve in my project.

@0x6e6562
Copy link
Author

My motivation for upgrading was because of the error handling in 0.6.0. Before I upgraded, server errors were being silently swallowed, now that I've got 0.8.2 working, server errors are being populated in the component props.

So the workaround is to run a local clone of react-apollo and uprev the apollo-client peer dependency.

@jbaxleyiii
Copy link
Contributor

This should be fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants