Skip to content

Commit

Permalink
chore: compiler-dom as optionalDependencies vuejs#2107
Browse files Browse the repository at this point in the history
Otherwise you get with yarn berry an error
@vue/test-utils tried to access @vue/compiler-dom (a peer dependency)
but it isn't provided by your application; this makes the require call
ambiguous and unsound.

May cause vuejs#1958 again. May fixes vuejs#2107.
  • Loading branch information
stefpb committed Aug 31, 2023
1 parent deee32d commit ebeb505
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 36 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@
"@vue/server-renderer": "^3.0.1",
"vue": "^3.0.1"
},
"peerDependenciesMeta": {
"@vue/server-renderer": {
"optional": true
}
"optionalDependencies": {
"@vue/compiler-dom": "^3.0.1",
"@vue/server-renderer": "^3.0.1"
},
"author": {
"name": "Lachlan Miller",
Expand Down
40 changes: 8 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ebeb505

Please sign in to comment.