veaury
veaury copied to clipboard
Vben+Vite At least one <template> or <script> is required in a single file component.
vite.config.mts里面 import veauryVitePlugins from 'veaury/vite/esm/index.mjs'; veauryVitePlugins({ type: 'vue', }), 其他都注释掉了 ,然后就是出现很多这种报错,
https://github.com/vbenjs/vue-vben-admin vben源码在这,就是直接引入veaury相关内容就报错了,"@vitejs/plugin-react": "^4.6.0", "@vitejs/plugin-vue": "catalog:", "@vitejs/plugin-vue-jsx": "4.0.1", "react": "19.0.0", "react-dom": "19.0.0", "veaury": "^2.6.2", 然后加上上面的就报错了
@walkergg6 把你的vite.config.mts完整提供一下
我发现是里面有封装了一层 然后导致引入了vue 但是现在出现新的问题,react组件会报这个
@