From c2081456361376b9563448b69613e3bd77571a3c Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 24 Dec 2021 13:52:35 +0800 Subject: [PATCH] fix: update the vue version in the error message to match the peer dependency version in the `package.json`. `@vue/compiler-sfc` is no longer used, therefore removed from the message. Closes #6234 --- packages/plugin-vue/src/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-vue/src/compiler.ts b/packages/plugin-vue/src/compiler.ts index 0fb4eef7d2677a..9c70f6a8a64590 100644 --- a/packages/plugin-vue/src/compiler.ts +++ b/packages/plugin-vue/src/compiler.ts @@ -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.` ) }