Make Vite work with Vue 2
Problem
> Do NOT ignore this template or your issue will have a very high chance to be closed without comment. Describe the bug Trying Vite on a fresh vue 2.5 / typescript app. Reproduction - Create a new app: `npm init vite-app vue25 --template vue` - Replace `package.json` with this: [code block] System Info - required `vite` version: 0.18.0 - required Operating System: macOS Catalina 10.15.4 - required Node version: 10.16.0 - Optional: - npm/yarn version: 6.14.4 - Installed `vue` version (from `yarn.lock` or `package-lock.json`) - Installed `@vue/compiler-sfc` version I thought this worked with Vue 2.5 as @vue/compiler-sfc is vue 3... only.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Make Vite work with Vue 2
Unfortunately Vite doesn't work with Vue 2 (at least for now). We should make it work though.
Trust Score
8 verifications
- 1
Unfortunately Vite doesn't work with Vue 2 (at least for now). We should make it
Unfortunately Vite doesn't work with Vue 2 (at least for now). We should make it work though.
Validation
Resolved in vitejs/vite GitHub issue #305. Community reactions: 59 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep