Skip to content

Commit

Permalink
fix: update the vue version in the error message
Browse files Browse the repository at this point in the history
to match the peer dependency version in the `package.json`.

`@vue/compiler-sfc` is no longer used, therefore removed from the message.

Closes vitejs#6234
  • Loading branch information
haoqunjiang committed Dec 24, 2021
1 parent a96bdd9 commit c208145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-vue/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function resolveCompiler(root: string): typeof _compiler {
if (!compiler) {
throw new Error(
`Failed to resolve vue/compiler-sfc.\n` +
`@vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc ` +
`@vitejs/plugin-vue requires vue (>=3.2.25) ` +
`to be present in the dependency tree.`
)
}
Expand Down

0 comments on commit c208145

Please sign in to comment.