Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting dependencies with Nuxt3 and Pinia #976

Open
raphi-0901 opened this issue Jul 14, 2023 · 1 comment
Open

Conflicting dependencies with Nuxt3 and Pinia #976

raphi-0901 opened this issue Jul 14, 2023 · 1 comment

Comments

@raphi-0901
Copy link

Hey, I freshly installed a Nuxt3 project with Pinia. When I try to install my dependencies with your package, I receive this dependency issues:

npm notice 
npm notice New major version of npm available! 8.19.4 -> 9.8.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.8.0
npm notice Run npm install -g npm@9.8.0 to update!
npm notice 
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: nuxt-app@1.0.0
npm ERR! Found: vue@3.3.4
npm ERR! node_modules/vue
npm ERR!   vue@"^3.3.4" from nuxt@3.6.2
npm ERR!   node_modules/nuxt
npm ERR!     dev nuxt@"^3.6.1" from the root project
npm ERR!     peer nuxt@"^3.6.1" from @nuxt/devtools@0.6.7
npm ERR!     node_modules/@nuxt/devtools
npm ERR!       dev @nuxt/devtools@"^0.6.6" from the root project
npm ERR!   peer vue@"^3.2.0" from floating-vue@2.0.0-beta.24
npm ERR!   node_modules/floating-vue
npm ERR!     floating-vue@"^2.0.0-beta.23" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! pinia@"^2.1.4" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: vue@2.6.14
npm ERR! node_modules/vue
npm ERR!   peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.1
npm ERR!   node_modules/@vue/composition-api
npm ERR!     peerOptional @vue/composition-api@"^1.4.0" from pinia@2.1.4
npm ERR!     node_modules/pinia
npm ERR!       pinia@"^2.1.4" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-07-14T09_07_25_477Z-debug-0.log
ERROR: 1

And here is my package.json

{
  "name": "nuxt-app",
  "version": "1.0.0",
  "private": true,
  "type": "module",
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare",
    "lint": "eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore .",
    "lint:fix": "eslint --fix --ext '.js,.ts,.vue, .cjs' /nuxt3"
  },
  "devDependencies": {
    "@nuxt/devtools": "^0.6.6",
    "@nuxtjs/eslint-module": "^4.1.0",
    "@nuxtjs/i18n": "^8.0.0-beta.12",
    "@nuxtjs/strapi": "^1.9.3",
    "@nuxtjs/tailwindcss": "^6.8.0",
    "@types/node": "^18",
    "eslint": "^8.44.0",
    "eslint-config-prettier": "^8.8.0",
    "eslint-plugin-nuxt": "^4.0.0",
    "eslint-plugin-prettier": "^4.2.1",
    "eslint-plugin-vue": "^9.15.1",
    "nuxt": "^3.6.1",
    "prettier": "^2.8.8",
    "prettier-plugin-tailwindcss": "^0.3.0",
    "standard": "^17.1.0"
  },
  "dependencies": {
    "@nuxtjs/eslint-config-typescript": "^12.0.0",
    "@pinia/nuxt": "^0.4.11",
    "floating-vue": "^2.0.0-beta.23",
    "pinia": "^2.1.4"
  }
}

I already removed and reinstalled my node_modules and package-lock.json.

@JokerMartini
Copy link

works for me on latest. i just installed latest of both last night and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants