S
S
shsv3822022-03-10 14:26:02
JavaScript
shsv382, 2022-03-10 14:26:02

How to import ApolloClient without errors?

I add graphql to React application, when I enter only one line, 13 import errors from different modules come out
import ApolloClient from "apollo-boost";

ERROR in ./node_modules/graphql-tag/lib/index.js 74:17-22
ERROR in ./node_modules/graphql/index.mjs 25:0-49
ERROR in ./node_modules/graphql/index.mjs 27:0-49
ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
...

etc...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question