unplugin / unplugin-vue2-script-setup

💡 Bring `<script setup>` to Vue 2.
MIT License
599 stars 39 forks source link

vite 3.0 启动报错[vite] Internal server error: $ can only be used as the initializer of a variable declaration. #147

Closed TTcom closed 2 years ago

TTcom commented 2 years ago

Describe the bug

vite 3.0 启动报错[vite] Internal server error: $ can only be used as the initializer of a variable declaration. "vite": "v3.0.3", "unplugin-vue2-script-setup": "^0.11.3" use: plugins: [ ScriptSetup({ reactivityTransform: true }) ]

Reproduction

npm run dev

System Info

windows10
chrome浏览器
nodejs v16.16.0

Used Package Manager

pnpm

Validations

antfu commented 2 years ago

We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks.

Why reproduction is required