vitejs / vite-plugin-vue2

Vite plugin for Vue 2.7
MIT License
551 stars 48 forks source link

feat: resolve complier from peer dep when unable to resolve from the root #68

Closed rorry121 closed 2 years ago

rorry121 commented 2 years ago

── root   └── v2-7     └── node_modules     └── vite.config.ts     └── ...   └── src     └── index.ts

Hello, when I excute vite build --config v2-7/vite.config.ts in root. There is no vue(2.7),but the v2-7 has. And I ran into this error:

[vite:vue2] Failed to resolve vue/compiler-sfc. @vitejs/plugin-vue2 requires vue (>=2.7.0) to be present in the dependency tree. error during build: Error: Failed to resolve vue/compiler-sfc. @vitejs/plugin-vue2 requires vue (>=2.7.0) to be present in the dependency tree.

I don't know why remove this part of the code.I think this may be a mistake. It should be the same as @vitejs/plugin-vue

rorry121 commented 2 years ago

@sodatea help

rorry121 commented 2 years ago

@sodatea okay, looking forward to a new release