Closed it-sha closed 4 years ago
Maybe I make mistake in "Version" sections. Command yarn add @nuxtjs/apollo graphql-tag
probably installed the latest version of @nuxtjs/apollo
Nuxt version is taken from console output http://prntscr.com/t65v9i
Fixed with necessary dependencies
@it-sha what did you do to fix it?
This worked for me:
https://github.com/nuxt/nuxt.js/issues/5287#issuecomment-622660147
This is strange and should be fixed. I had to manually add:
"dependencies": {
....
"apollo-cache-inmemory": "^1.6.5",
}
"devDependencies": {
...
"core-js": "2"
}
Even though both modules were already loaded to node_modules
Version
v4.0.1-rc.1
Reproduction link
https://github.com/it-sha/nuxt-apollo/commit/8ea71d7a8125ac54ee19aff3b799a7740ea7b4fb
Steps to reproduce
What is expected ?
start working with nuxt
What is actually happening?
× Client
Compiled with some errors in 11.74s
√ Server
Compiled successfully in 10.08s
ERROR Failed to compile with 44 errors friendly-errors 12:17:29
These dependencies were not found: friendly-errors 12:17:29
friendly-errors 12:17:29
s/vue-loader/lib??vue-loader-options!./pages/vuex-example.vue?vue&type=script&lang=js&
s
s/vue-loader/lib??vue-loader-options!./.nuxt/components/nuxt-build-indicator.vue?vue&type=script&lang=js&
?ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/vuex-example.vue?vue&type=script&lang=js&
friendly-errors 12:17:29
To install them, you can run: npm install --save core-js/modules/es6.array.find core-js/modules/es6.array.from core-js/modules/es6.array.iterator core-js/modules/es6.date.to-string core-js/modules/es6.function.name core-js
/modules/es6.object.assign core-js/modules/es6.object.keys core-js/modules/es6.object.to-string core-js/modules
/es6.promise core-js/modules/es6.regexp.constructor core-js/modules/es6.regexp.match core-js/modules/es6.regexp
.replace core-js/modules/es6.regexp.search core-js/modules/es6.regexp.split core-js/modules/es6.regexp.to-strin
g core-js/modules/es6.string.includes core-js/modules/es6.string.iterator core-js/modules/es6.string.repeat cor
e-js/modules/es6.string.starts-with core-js/modules/es6.symbol core-js/modules/es7.array.includes core-js/modul
es/es7.object.get-own-property-descriptors core-js/modules/es7.promise.finally core-js/modules/es7.symbol.async
-iterator core-js/modules/web.dom.iterable
i Waiting for file changes 12:17:29
i Memory usage: 198 MB (RSS: 261 MB) 12:17:29
i Listening on: http://localhost:3000/ 12:17:29
WARN Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys' 12:17:30
Additional comments?
How can I install apollo into nuxt project?