unplugin / unplugin-vue2-script-setup

💡 Bring `<script setup>` to Vue 2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

TTcom opened this issue · comments

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

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

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