Closed
Description
Describe the bug
The compiler
default value null
results rawOptions.compiler
never used.
vite/packages/plugin-vue/src/index.ts
Lines 91 to 100 in 40f98bf
Reproduction
b289b2d#diff-2b066c2eb45a74f1191f8796c6c76a93a7bc81417b11b8852e965aec86be2cc4
System Info
System:
OS: macOS 12.1
CPU: (8) x64 Apple M1
Memory: 36.40 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.18.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.15 - /usr/local/bin/npm
Browsers:
Chrome: 97.0.4692.99
Firefox Developer Edition: 97.0
Safari: 15.2
npmPackages:
@vitejs/plugin-vue: ^2.0.1 => 2.0.1
vite: ^2.7.13 => 2.7.13
Used Package Manager
yarn
Logs
"Failed to resolve vue/compiler-sfc.\n@vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree."
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.