nuxt-modules / apollo

Nuxt.js module to use Vue-Apollo. The Apollo integration for GraphQL.
https://apollo.nuxtjs.org
MIT License
952 stars 198 forks source link

Can't install @nuxt/apollo with Nuxt 2.13.1 #340

Closed it-sha closed 4 years ago

it-sha commented 4 years ago

Version

v4.0.1-rc.1

Reproduction link

https://github.com/it-sha/nuxt-apollo/commit/8ea71d7a8125ac54ee19aff3b799a7740ea7b4fb

Steps to reproduce

  1. yarn add @nuxtjs/apollo graphql-tag
  2. yarn dev

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&

/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?

This bug report is available on Nuxt community (#c320)
it-sha commented 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

it-sha commented 4 years ago

Nuxt version is taken from console output http://prntscr.com/t65v9i

it-sha commented 4 years ago

Fixed with necessary dependencies

kilakewe commented 4 years ago

@it-sha what did you do to fix it?

MarkASwanson commented 4 years ago

This worked for me:

https://github.com/nuxt/nuxt.js/issues/5287#issuecomment-622660147

pi43r commented 4 years ago

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