Closed privatenumber closed 3 years ago
I actually think this is a bug with Vite / @vitejs/plugin-vue
itself — I ran into this in a normal Vite + Vue 3 + TS project!
This error is coming from vite-plugin-vue2
(as reported by Vite), but if you're experiencing it in @vitejs/plugin-vue
you should report it there.
IIRC, when I did some quick debugging, it was because this plugin was using Babel to parse. I don't recall which one but here are a few:
Curious if these are necessary, since vue-loader doesn't use Babel and if so, if they can be replaced with esbuild for speed.
You should use <script><\/script>
.
Please see https://github.com/vuejs/vue-loader/issues/506
SFC like this breaks:
with error: