相关平台
React Native
使用框架: React
复现步骤
新建taro项目,引入app.ts文件引入 import 'taro-ui/dist/style/index.rn.scss' 就报错:error: node_modules\taro-ui\dist\style\index.rn.scss: Jest worker encountered 4 child process exceptions, exceeding retry limit
期望结果
可以正常运行
实际结果
目前无法正常使用taro-ui进行dev:rn
环境信息
👽 Taro v3.6.18
Taro CLI 3.6.18 environment info:
System:
OS: Windows 10 10.0.22621
Binaries:
Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files\nodejs\node_global\yarn.CMD
npm: 9.8.1 - C:\Program Files\nodejs\node_global\npm.CMD
npmPackages:
@tarojs/cli: 3.6.18 => 3.6.18
@tarojs/components: 3.6.18 => 3.6.18
@tarojs/components-rn: ^3.6.18 => 3.6.18
@tarojs/helper: 3.6.18 => 3.6.18
@tarojs/plugin-framework-react: 3.6.18 => 3.6.18
@tarojs/plugin-platform-alipay: 3.6.18 => 3.6.18
@tarojs/plugin-platform-h5: 3.6.18 => 3.6.18
@tarojs/plugin-platform-jd: 3.6.18 => 3.6.18
@tarojs/plugin-platform-qq: 3.6.18 => 3.6.18
@tarojs/plugin-platform-swan: 3.6.18 => 3.6.18
@tarojs/plugin-platform-tt: 3.6.18 => 3.6.18
@tarojs/plugin-platform-weapp: 3.6.18 => 3.6.18
@tarojs/react: 3.6.18 => 3.6.18
@tarojs/rn-runner: ^3.6.18 => 3.6.18
@tarojs/rn-supporter: ^3.6.18 => 3.6.18
@tarojs/runtime: 3.6.18 => 3.6.18
@tarojs/runtime-rn: ^3.6.18 => 3.6.18
@tarojs/shared: 3.6.18 => 3.6.18
@tarojs/taro: 3.6.18 => 3.6.18
@tarojs/taro-loader: 3.6.18 => 3.6.18
@tarojs/taro-rn: ^3.6.18 => 3.6.18
@tarojs/webpack5-runner: 3.6.18 => 3.6.18
babel-preset-taro: 3.6.18 => 3.6.18
eslint-config-taro: 3.6.18 => 3.6.18
expo: ~47.0.3 => 47.0.14
react: ^18.1.0 => 18.2.0
react-native: ^0.70.5 => 0.70.14
taro-ui: ^3.1.1 => 3.1.1
4条答案
按热度按时间oogrdqng1#
NervJS/taro-ui#1424 (comment)
bwitn5fc2#
NervJS/taro-ui#1424 (comment)NervJS/taro-ui#1424(评论)
配置了还是这个问题,我创建项目是react版本不是rn的,不知道有没有影响
ccrfmcuu3#
在 config.js 中添加如下配置:
详情: NervJS/taro-ui#1660
ivqmmu1c4#
taro 开发 app 并不是个很好的选择