Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue3+vite,融合React,调用react-querybuilder组件库报错 #171

Open
p-m-q opened this issue Mar 27, 2025 · 5 comments
Open

Vue3+vite,融合React,调用react-querybuilder组件库报错 #171

p-m-q opened this issue Mar 27, 2025 · 5 comments

Comments

@p-m-q
Copy link

p-m-q commented Mar 27, 2025

包装类

Image

react jsx

Image

报错:

Image

大佬们有什么解决思路没有呀,困扰了一天了

@p-m-q
Copy link
Author

p-m-q commented Mar 27, 2025

环境:vue: ^3.5.13,vite: ^6.2.1, "veaury": "^2.6.2", "react": "^19.0.0", "react-dom": "^19.0.0", "react-querybuilder": "^8.4.1",

@devilwjp
Copy link
Collaborator

devilwjp commented Mar 28, 2025

@p-m-q 你这个错误很明显是react的jsx识别错误,你的react.jsx文件要放在react_app目录里

@devilwjp
Copy link
Collaborator

@p-m-q 需要仔细阅读文档

Image

@devilwjp
Copy link
Collaborator

@p-m-q
你需要配置这个vue项目的vite config,引入veauryVitePlugin,然后按照veaury的文档操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants