Subscribe on changes!

[vite] Internal server error: At least one <template> or <script> is required in a single file component.

avatar
Feb 28th 2023

Vue version

3.2.45

Link to minimal reproduction

https://github.com/Hollelihanqi/vite-vue3

Steps to reproduce

step1: clone: https://github.com/Hollelihanqi/vite-vue3.git step2: pnpm install step3: pnpm dev

What is expected?

Running the project without the following errors: image

What is actually happening?

Project fails to start properly! Uploading image.png…

System Info

No response

Any additional comments?

No response

avatar
Feb 28th 2023

image Why is the plugin called twice? Obviously the problem here is caused by

avatar
Feb 28th 2023

you should use this import vueJsx from '@vitejs/plugin-vue-jsx'

avatar
Feb 28th 2023

Thanks!!!