-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove React as peer dependency #6532
Comments
Any word from the Apollo team on this? |
Related to this, I'm having trouble using Is it just not available for non-React projects?
Compiler warnings
Versions
|
@Ksan8 For the original issue here, until Apollo Client 4 is released (which will include a proper fix for this via #8190), we're going to investigate using |
@finsec-dz you should no longer see the peer dependency warning for Given the date of this issue's creation, I'm wondering if you were using npm@v6 at the time which does not support Here are some screenshots of the terminal output of npm v8.10.0yarn v1.22.19Some warnings about react-scripts peer dependencies but nothing from @apollo/client pnpm v7.3.0Note warnings for missing peer deps of two packages ( I'm going to close this issue for now, but please don't hesitate to re-open or create a new issue if you observe behavior that is not described above. Thanks! |
Intended outcome:
Installing
@apollo/client
should not not display warnings of missing dependencies.Actual outcome:
As per the migrating to v3 docs,
@apollo/client
can be used withoutReact
by importing from@apollo/client/core
.For projects NOT using
React
it should not be a required dependency.I'm currently using it in an
Angular
project and the warnings should not be displayed.How to reproduce the issue:
npm init
@apollo/client
:npm i @apollo/client
Versions
@apollo/[email protected]
The text was updated successfully, but these errors were encountered: