unplugin / unplugin-vue2-script-setup

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected token? I haven't seen this before

imoldfella opened this issue · comments

4:01:13 PM [vite] Internal server error: Unexpected token (1:7)
Plugin: unplugin-vue2-script-setup
File: /Users/jimhurd/yakdb/aetnaticket/src/shell/BrowseTicket.vue
1 | <script lang="ts" setup>
| ^
2 |
3 | import { onMounted, reactive, ref, toRef, getCurrentInstance } from '@vue/composition-api'

If I reverse the template and the script it still finding a problem at an area that's clearly not a problem

4:08:16 PM [vite] Internal server error: Unexpected token (1:7)
Plugin: unplugin-vue2-script-setup
File: /Users/jimhurd/yakdb/aetnaticket/src/shell/BrowseTicket.vue
1 |
| ^
2 |


3 |

It's just this one file, If I stub out everything its fine. Any tips or help you can offer is greatly appreciated.

I did npm update I have
"unplugin-vue2-script-setup": "^0.10.0",
"vite": "^2.8.6",
"vite-plugin-components": "^0.8.3",
"vite-plugin-icons": "^0.4.0",
"vite-plugin-vue2": "^1.4.2",
"vue-template-compiler": "^2.6.14",
"vue-tsc": "^0.31.1"

BrowseTicket.vue.txt

I found it {{ ticket. }} volar doesn't catch it, and it seems to really mess with the parser.