jest-vue-preprocessor icon indicating copy to clipboard operation
jest-vue-preprocessor copied to clipboard

Supoort vue 2.7.x

Open softloft38p-michael opened this issue 2 years ago • 0 comments

I'm submitting a ... (check one with "x")

[] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request

Current behavior npm install complains about version compatibility with:

npm install                                                                                                                                                                                                                                                    (sweb-resolve/synapse_web/static/webpack) 12:14:18
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vue-template-compiler
npm ERR!   vue-template-compiler@"2.7.14" from the root project
npm ERR!   peerOptional vue-template-compiler@"^2.0.0" from @vue/[email protected]
npm ERR!   node_modules/@vue/cli-service
npm ERR!     dev @vue/cli-service@"~4.5.18" from the root project
npm ERR!     peer @vue/cli-service@"^3.0.0 || ^4.0.0-0" from @vue/[email protected]
npm ERR!     node_modules/@vue/cli-plugin-router
npm ERR!       @vue/cli-plugin-router@"^4.5.19" from @vue/[email protected]
npm ERR!     1 more (@vue/cli-plugin-vuex)
npm ERR!   2 more (@vue/test-utils, vue-jest)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vue-template-compiler@"2.6.x" from [email protected]
npm ERR! node_modules/jest-vue-preprocessor
npm ERR!   dev jest-vue-preprocessor@"^1.7.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vue-template-compiler
npm ERR!   peer vue-template-compiler@"2.6.x" from [email protected]
npm ERR!   node_modules/jest-vue-preprocessor
npm ERR!     dev jest-vue-preprocessor@"^1.7.1" 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.

Expected behavior npm install works.

Minimal reproduction of the problem with instructions package.json:

{
    "main": "webpack.mix.js",
    "private": true,
    "dependencies": {
      "vue": "2.7.14",
      "vue-template-compiler": "2.7.14",
      ...
    },
    "devDependencies": {
      "jest-vue-preprocessor": "^1.7.1",
      ...
    },
}

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • jest-vue-preprocessor: 1.7.1
  • Node version : [ OSX | Linux | Windows ]
node -v                                                                                                                                                                                                                                                       
v14.20.0
npm -v                                                                                                                                                                                                                                                         (sweb-resolve/synapse_web/static/webpack) 12:31:54
8.6.0
  • Platform: [ OSX | Linux | Windows ] macOS 13.2.1

softloft38p-michael avatar Feb 22 '23 20:02 softloft38p-michael