花大咩
花大咩
@baijunjie 这个问题已经修复,尝试`2.3.17`
@yuhaijian 参考 https://github.com/devilwjp/veaury?tab=readme-ov-file#typescript-jsx-types-conflict-caused-by-vue-and-react-at-the-same-time 你的问题是vue和react的ts类型文件冲突了,需要根据不同的版本手动修改相关类型文件来解决,链接里只是提供了node_modules/@types/react/index.d.ts(@types/[email protected])和node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts(@vue/[email protected])的解决方案,你还是要根据自身项目这两个文件的版本来自行兼容的
@yuhaijian 或者你也可以提供一个你的范例项目,我fork一下然后看下你的问题
@yang619681572 你这个错误是自己项目的错误吧,你这个this应该是找不到指向的
@cstongwei ```js export default defineConfig({ plugins: [ // Turn off vue and vuejsx plugins // vue(), // vueJsx(), // When the type of veauryVitePlugins is set to vue, // only...
@FreeLancerPT Your error may be that your react jsx is compiled into VNode. You should check your configuration or provide me with an actual code example. I can help you...
@paoyideyun 在react项目中,引入veaury,并且安装vue,然后通过applyVueInReact使用这个vue组件
@huangkaoya 这个不是组件,是插件,长期被维护,会更新
@jimoguilai 配置如下 ``` plugins: [ veauryVitePlugins({ type: 'vue' }), vueSetupExtend(), viteCompression(), JSON.parse(env.VITE_OPEN_CDN) ? buildConfig.cdn() : null, ], ``` 然后带有jsx的文件要用.jsx后缀命名
@zhaozhongyu 提供一个范例项目给我