When I use vue-cli to build vue-apollo, aws-appsync-auth-link, aws-appsync-subscription-link I get the following error:
This dependency was not found:
* react in ./node_modules/@apollo/client/react/context/ApolloConsumer.js, ./node_modules/@apollo/client/react/context/ApolloContext.js and 7 others
To install it, you can run: npm install --save react
If you install react, the error will disappear, but since react is not used, I would like to avoid installing it.
Probably because aa aws-appsync-auth-link and aws-appsync-subscription-link are importing @ apollo/client, so they also depend on react. Importing @apollo/client/core seems to fix it.
What is the expected behavior?
It is to eliminate the error without installing react.
Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?
When I use vue-cli to build
vue-apollo
,aws-appsync-auth-link
,aws-appsync-subscription-link
I get the following error:If you install react, the error will disappear, but since react is not used, I would like to avoid installing it.
Probably because aa
aws-appsync-auth-link
andaws-appsync-subscription-link
are importing@ apollo/client
, so they also depend on react. Importing@apollo/client/core
seems to fix it.What is the expected behavior?
It is to eliminate the error without installing react.
Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?