Closed Jacky10000 closed 1 year ago
Hello @Jacky10000. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction
will be closed if they have no activity within 3 days.
<template>
<div class="price">
<div @click="onClick">
Did you add </template>
Tag? It seems that your template is invalid
<template> <div class="price"> <div @click="onClick">
Did you add
</template>
Tag? It seems that your template is invalid
no,beacuse I just show a little codes, if I delete all codes, just like this<template><div></div></template>
,it will report the tempalte tag is error
Describe the bug
My project uses vue3+vite+js+ts: it is an old project which use vite + vue3+js,recently I developed some new modules with typescript,it can run normal when use 'npm run dev' cammand,but when I use 'vite build', it reports errors like this: [vite:esbuild] Transform failed with 1 error: /components/quotedPrice/index.vue?vue&type=script&setup=true&lang.ts:2:5: ERROR: Expected ">" but found "class" Expected ">" but found "class"
I think this error is not accurate, because if i delete class, it will be 'Expected ">" but found "@"'
Reproduction
none
Steps to reproduce
none
System Info
Used Package Manager
npm
Logs
No response
Validations