@vue/compiler-sfc@^3.0.8 not working with Vue ^2.6.12
Version
3.1.5
Reproduction link
https://github.com/Colt-Builders-Corp/estimating-tool/blob/development/package.json
Steps to reproduce
{
"version": "0.1.0",
"dependencies": {
"vue": "^2.6.12",
},
"devDependencies": {
"@vue/compiler-sfc": "^3.0.8",
},
}
Node v14.15.3
npm install
What is expected?
Successful install of compiler-sfc
What is actually happening?
# npm resolution error report
2021-07-20T17:51:38.770Z
While resolving: estimating-tool@0.1.0
Found: vue@2.6.14
node_modules/vue
vue@"^2.6.12" from the root project
Could not resolve dependency:
peer vue@"3.1.5" from @vue/compiler-sfc@3.1.5
node_modules/@vue/compiler-sfc
@vue/compiler-sfc@"*" from the root project
Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
Raw JSON explanation object:
{
"code": "ERESOLVE",
"current": {
"name": "vue",
"version": "2.6.14",
"whileInstalling": {
"name": "estimating-tool",
"version": "0.1.0",
"path": "/Users/matthewliechty/Desktop/projects/estimating-tool"
},
"location": "node_modules/vue",
"dependents": [
{
"type": "prod",
"name": "vue",
"spec": "^2.6.12",
"from": {
"location": "/Users/matthewliechty/Desktop/projects/estimating-tool"
}
}
]
},
"edge": {
"type": "peer",
"name": "vue",
"spec": "3.1.5",
"error": "INVALID",
"from": {
"name": "@vue/compiler-sfc",
"version": "3.1.5",
"whileInstalling": {
"name": "estimating-tool",
"version": "0.1.0",
"path": "/Users/matthewliechty/Desktop/projects/estimating-tool"
},
"location": "node_modules/@vue/compiler-sfc",
"dependents": [
{
"type": "prod",
"name": "@vue/compiler-sfc",
"spec": "*",
"from": {
"location": "/Users/matthewliechty/Desktop/projects/estimating-tool"
}
}
]
}
},
"peerConflict": null,
"strictPeerDeps": false,
"force": false
}
Since this morning, @vue/compiler-sfc 3^ doesn't work with Vue 2. @vue/compile-sfc is being loaded because we use @vue/cli-plugin-unit-jest, but removing and just including @vue/compile-sfc alone reproduces the error.