-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
如何构建Taro 3.2.10版本并去掉RN相关的依赖 #9477
Comments
楼上 + 1,最近安装 babel-preset-taro 一直失败,都是挂在 |
这几个依赖去掉就好了吧 |
楼主解决了吗,我也遇到了patch-package 这个包压根装不上 |
在项目的package.json加上"patch-package": "^6.2.2"就可以了 |
去掉需要改源码 |
我知道在项目的package.json上加patch-package依赖就可以了,但是这样让别人很费解,这个并不是我项目的直接依赖, 问题是这个包没有被安装上,是怎么触发的postinstall钩子的 |
已复现,可先按如上方案解决,近期会修复。 |
另外也可在项目的 "resolutions": {
"@ant-design/icons-react-native": "2.2.1"
} |
@ant-design/icons-react-native 已更新到了 2.3.1,解决了上述报错。 |
试了下这个版本好了,棒 |
这个特性解决了什么问题?
团队项目只用于小程序,对React Native没有需求,所以不需要任何对React Native的支持,目前发现Taro 3.2.10内置了大量React Native相关依赖,同时使用yarn时最后还会调用npm run patch-package命令,这个命令一直是失败的
这个 API 长什么样?
开发者可自主决定需不需要引入React Native相关依赖
The text was updated successfully, but these errors were encountered: