Я пытаюсь установить Vue Apollo в качестве загрузочного в квазар
Загрузочный файл: src/boot/vue-apollo.js
import VueApollo from 'vue-apollo'
import ApolloClient from 'apollo-boost'
const apolloClient = new ApolloClient({
uri: process.env.GRQPHQL_API
})
const apolloProvider = new VueApollo({
defaultClient: apolloClient
})
export default async ({ Vue, app }) => {
Vue.use(VueApollo)
app.apolloProvider = apolloProvider
}
Ошибка:
These dependencies were not found:
* graphql/language/parser in ./node_modules/graphql-tag/src/index.js
* graphql/language/printer in ./node_modules/apollo-link-http-common/lib/bundle.esm.js
* graphql/language/visitor in ./node_modules/apollo-client/bundle.esm.js, ./node_modules/apollo-utilities/lib/bundle.esm.js
To install them, you can run: npm install --save graphql/language/parser graphql/language/printer graphql/language/visitor
Я нашелрешение: установите пакет graphql npm install --save graphql
, но он не работает