相关平台
React Native
使用框架: React
复现步骤
init
选择 react-native,选择 pnpm
期望结果
支持pnpm
实际结果
不支持
环境信息
👽 Taro v3.5.7
Taro CLI 3.5.7 environment info:
System:
OS: macOS 13.0
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.10.0 - /usr/local/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
npmPackages:
@tarojs/cli: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/components: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/helper: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/plugin-framework-react: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/plugin-platform-alipay: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/plugin-platform-jd: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/plugin-platform-qq: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/plugin-platform-swan: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/plugin-platform-tt: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/plugin-platform-weapp: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/react: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/rn-runner: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/router: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/runtime: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/shared: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/taro: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/taro-h5: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/taro-rn: 3.6.0-canary.4 => 3.6.0-canary.4
@tarojs/webpack5-runner: 3.6.0-canary.4 => 3.6.0-canary.4
babel-preset-taro: 3.6.0-canary.4 => 3.6.0-canary.4
eslint-config-taro: 3.6.0-canary.4 => 3.6.0-canary.4
expo: ~46.0.1 => 46.0.17
react: ^18.0.0 => 18.2.0
react-native: ^0.69.3 => 0.69.7
4条答案
按热度按时间xxhby3vn1#
https://microsoft.github.io/rnx-kit/docs/tools/metro-resolver-symlinks
目前存在问题,resolver,配置与 taro 存在冲突
pu3pd22g2#
https://pnpm.io/
8i9zcol23#
#13151
zpf6vheq4#
还需要处理
.npmrc 增加
public-hoist-pattern[]=@babel/*
upgradePeerdeps script 中 -Y 改为 -P
项目不能存在幽灵依赖
@react-native-community/cli-platform-ios
@react-native-community/cli-platform-android
@tarojs/components-advanced
@tarojs/rn-supporter ✅ 加入模板
@tarojs/runtime-rn ✅ 加入模板
jsc-android
react-native-gradle-plugin
expo-modules-autolinking
metro-config
expo-application
expo-constants
expo-error-recovery
expo-file-system
expo-font