运行报错 ,是不支持jsx吗
[plugin:vite:esbuild] Transform failed with 1 error:
/Users/Documents/YangJI/kctwl-app/src/App.tsx:46:19: ERROR: Unexpected "/"
at App.tsx:46:19
Unexpected "/"
44 |
45 |
46 | <RouterView></RouterView>
| ^
47 |
48 | );
views/Home/Index not found
1 个回复
BoredApe - 有问题就会有答案。
支持JSX。uni-app vue3 组件就是JSX写的。
请参考:https://zh.uniapp.dcloud.io/tutorial/syntax-jsx.html配置一下