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

初始化项目RN环境无法运行 #7165

Closed
richerfu opened this issue Jul 26, 2020 · 4 comments
Closed

初始化项目RN环境无法运行 #7165

richerfu opened this issue Jul 26, 2020 · 4 comments
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x

Comments

@richerfu
Copy link

相关平台

React Native

使用框架: React

复现步骤

1.Taro init创建新项目选择 React TypeScript Less 默认模板 创建项目
2.运行npm run dev:rn 或者 npm run build:rn

期望结果

正常运行

实际结果

运行报错:
UnhandledPromiseRejectionWarning: Error: Cannot find module 'babel-plugin-transform-jsx-to-stylesheet'

环境信息

 Taro CLI 3.0.2 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
      Yarn: 1.22.4 - ~/.nvm/versions/node/v12.16.1/bin/yarn
      npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
    npmPackages:
      @tarojs/components: 3.0.2 => 3.0.2
      @tarojs/mini-runner: 3.0.2 => 3.0.2
      @tarojs/react: 3.0.2 => 3.0.2
      @tarojs/runtime: 3.0.2 => 3.0.2
      @tarojs/taro: 3.0.2 => 3.0.2
      @tarojs/webpack-runner: 3.0.2 => 3.0.2
      babel-preset-taro: 3.0.2 => 3.0.2
      eslint-config-taro: 3.0.2 => 3.0.2
      react: 16.3.1 => 16.3.1
      react-native: 0.55.4 => 0.55.4
    npmGlobalPackages:
      typescript: 3.8.3

补充信息

1.使用npm安装依赖 无法安装@tarojs/components-rn相关包
2.使用yarn安装依赖,@tarojs/components-rn选择版本的时候会重复出现此步骤

@taro-bot2 taro-bot2 bot added F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x labels Jul 26, 2020
@richerfu
Copy link
Author

使用Windows系统出现相同问题,不知道是否是我操作步骤有问题

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 27, 2020

Taro 3 暂不支持 RN。

@Chen-jj Chen-jj closed this as completed Jul 27, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 27, 2020

#6986

@richerfu
Copy link
Author

可惜,目前3.x的版本对于各种API和语法支持个人觉得非常优秀。居然不支持RN,希望尽快支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants