diff --git a/src/node/utils/resolveVue.ts b/src/node/utils/resolveVue.ts index f975d4725fd654..44304fa23eee20 100644 --- a/src/node/utils/resolveVue.ts +++ b/src/node/utils/resolveVue.ts @@ -42,12 +42,13 @@ export function resolveVue(root: string): ResolvedVuePaths { if (isLocal) { // user has local vue, verify that the same version of @vue/compiler-sfc // is also installed. - // vuePath will be undefined in this case since vue itself will be - // optimized by the deps optimizer and we can just let the resolver locate - // it. try { const userVuePkg = resolveFrom(root, 'vue/package.json') vueVersion = require(userVuePkg).version + vuePath = resolveFrom( + root, + '@vue/runtime-dom/dist/runtime-dom.esm-bundler.js' + ) const compilerPkgPath = resolveFrom( root, '@vue/compiler-sfc/package.json'