Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

React dependency need, after upgrade from 2.4.1 to 2.6.0 #51

Open
vsychov opened this issue Mar 16, 2022 · 4 comments
Open

React dependency need, after upgrade from 2.4.1 to 2.6.0 #51

vsychov opened this issue Mar 16, 2022 · 4 comments

Comments

@vsychov
Copy link

vsychov commented Mar 16, 2022

Hello,

after upgrade from 2.4.1 to 2.6.0 on quasar based project, I'm getting error about missing react dependency:

 App •  ERROR  •  Client-side  in ./node_modules/@apollo/client/react/context/ApolloConsumer.js

Module not found: Can't resolve imported dependency "react"
Did you forget to install it? You can run: yarn add react

 App •  ERROR  •  Client-side  in ./node_modules/@apollo/client/react/hooks/useApolloClient.js

Module not found: Can't resolve imported dependency "react"
Did you forget to install it? You can run: yarn add react


 App •  COMPILATION FAILED  • Please check the log above for details.

error Command failed with exit code 1.
@danReynolds
Copy link
Collaborator

React isn't a dependency on the project, only a dev dependency. Does your project use react?

@vsychov
Copy link
Author

vsychov commented Mar 21, 2022

My project don't use react, but looks like after update 2.4.1 to 2.6.0 apollo-cache-policies trying to call something from apollo, that needs react.

@LiamKarlMitchell
Copy link

Is there a way to get the ttl cache policies working without react I'm using Apollo Core (With Vue Apollo).
@vsychov did you find solution for this already?

@vsychov
Copy link
Author

vsychov commented Aug 8, 2022

@LiamKarlMitchell , you can use 2.4.1 version, it's works well

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants