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

fix: 在React Taro项目下,会安装vue3,从而导致JSX.Element 类型不兼容问题 #11553

Closed
wants to merge 1 commit into from

Conversation

imnot2
Copy link

@imnot2 imnot2 commented Apr 1, 2022

remove vue peer dependence

这个 PR 做了什么? (简要描述所做更改)
因为此依赖的vue peerDependence,在React Taro项目下,会安装vue3,从而导致JSX.Element 类型不兼容问题

这个 PR 是什么类型? (至少选择一个)

这个 PR 涉及以下平台:

  • 所有小程序
  • 微信小程序
  • 支付宝小程序
  • 百度小程序
  • 字节跳动小程序
  • QQ 轻应用
  • 京东小程序
  • 快应用平台(QuickApp)
  • Web 平台(H5)
  • 移动端(React-Native)

remove vue peer dependence
@taro-bot2
Copy link

taro-bot2 bot commented Apr 1, 2022

欢迎提交 PR~ Taro 非常感谢您对开源事业做出的贡献!🌷🌷🌷

一般 PR 会在一到两周内进行 review,成功合入后会随下一个版本进行发布。

Review 需要耗费大量时间,所以请遵循以下规范,协助我们提高 review 效率🙏🙏🙏

  1. 详细介绍 PR 的背景(非常重要,例如解决了什么问题,该问题如何复现等)
  2. 确保 CI 顺利运行。
  3. 最好能提供对应的测试用例。

为了更好地进行沟通,请加入 Taro 开发者微信群:

@imnot2 imnot2 changed the title Update package.json fix: 在React Taro项目下,会安装vue3,从而导致JSX.Element 类型不兼容问题 Apr 1, 2022
@Chen-jj Chen-jj requested a review from ZakaryCode April 1, 2022 08:35
@ZakaryCode
Copy link
Contributor

该问题与 peerDependencies 无关,并不是因为它导致的

另外 React 项目不需要 vue 插件,可以直接卸载

@ZakaryCode ZakaryCode closed this Apr 6, 2022
@imnot2
Copy link
Author

imnot2 commented Apr 7, 2022

该问题与 peerDependencies 无关,并不是因为它导致的

另外 React 项目不需要 vue 插件,可以直接卸载

react里确实不需要vue插件,但tarojs/cli里的依赖列表里有taro-plugin-vue3,它依赖vue。
如果不安装taro-plugin-vue3这个插件,会报警,在rush monorepo的严格模式下会报错,基于此,即使是react项目,也需要把taro-plugin-vue3这个插件安装上,也就变相安装了vue

@ZakaryCode
Copy link
Contributor

但tarojs/cli里的依赖列表里有taro-plugin-vue3,它依赖vue

这里所说是旧版本问题,与此处修复无关

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

Successfully merging this pull request may close these issues.

2 participants