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

Bug: cannot install with vue@^3.2.0 #351

Closed
jonalexander opened this issue Mar 3, 2023 · 4 comments
Closed

Bug: cannot install with vue@^3.2.0 #351

jonalexander opened this issue Mar 3, 2023 · 4 comments
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@jonalexander
Copy link

Info

Tool Version
Plugin v2.0.0
Vue v3.2.0
Node v18
OS mac

Input

npm install

Output or Error

npm ERR! Could not resolve dependency:
npm ERR! @gtm-support/vue-gtm@"^2.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: vue@3.2.47
npm ERR! node_modules/vue
npm ERR!   peer vue@"^3.2.0" from @gtm-support/vue-gtm@2.0.0
npm ERR!   node_modules/@gtm-support/vue-gtm
npm ERR!     @gtm-support/vue-gtm@"^2.0.0" 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 /home/node/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2023-03-03T21_14_33_526Z-debug-0.log

Expected Output

Additional Context

I am migrating a Vue2 repo to Vue3 and I currently have my vue package version set to ^3.2.0 and @gtm-support/vue-gtm set to ^2.0.0.

When I run npm install I receive the error seen above. In the package.json if your repo you list a devDep for vue at ^3.2.40 and a peerDep at ^3.2.0. I have to set my vue version to ^3.2.40 to avoid the error.

@kim-dokyung
Copy link

kim-dokyung commented Jul 31, 2023

any updates? I'm migrating nuxt2 to nuxt3 and found the similar issue(vue version 3.3.4)

npm ERR! Found: 
npm ERR! node_modules/vue
npm ERR!   peer vue@"^3.2.0" from @gtm-support/vue-gtm@2.0.0
npm ERR!   node_modules/@gtm-support/vue-gtm
npm ERR!     @gtm-support/vue-gtm@"^2.0.0" from the root project

@Shinigami92
Copy link
Contributor

I assume I need to set

"vue": "^3.2.0"
to >= instead of ^

Will do when I find the time

@Shinigami92 Shinigami92 self-assigned this Aug 1, 2023
@Shinigami92 Shinigami92 added bug Something isn't working dependencies Pull requests that update a dependency file labels Aug 1, 2023
@Shinigami92
Copy link
Contributor

Please test v2.1.0 and report if everything is working

@kim-dokyung
Copy link

kim-dokyung commented Aug 2, 2023

@Shinigami92 I tested it, and it works! thanks:) I'm in the middle of the migration to Nuxt3, so I will report if any additional issues occur

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

3 participants