FG
๐Ÿ’ป Software๐ŸŒ Web & Full-Stack

Make Vite work with Vue 2

Freshabout 5 years ago
Mar 14, 20260 views
Confidence Score79%
79%

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

Canonical Fix
High Confidence Fix
76% confidence90% success rate8 verificationsLast verified Mar 14, 2026

Solution: Make Vite work with Vue 2

Low Risk

Unfortunately Vite doesn't work with Vue 2 (at least for now). We should make it work though.

76

Trust Score

8 verifications

90% success
  1. 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

Worked: 8
Partial: 1
Failed: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

vitebuild-tooljavascriptenhancement