Skip to content

使用taro创建的rn无法启动,卡在最后一步yarn ios #16675

Open
@xinmifengboy

Description

@xinmifengboy

相关平台

React Native

复现仓库

https://github.com/xinmifengboy/app.git

使用框架: React

复现步骤

根据官方文档视频一步步来的

期望结果

可以构建rn项目,启动ios模拟器

实际结果

无法启动

环境信息

👽 Taro v3.3.3


  Taro CLI 3.3.3 environment info:
    System:
      OS: macOS 15.0.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.12.1 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 8.19.2 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.3.3 => 3.3.3 
      @tarojs/components: 3.3.3 => 3.3.3 
      @tarojs/mini-runner: 3.3.3 => 3.3.3 
      @tarojs/react: 3.3.3 => 3.3.3 
      @tarojs/runtime: 3.3.3 => 3.3.3 
      @tarojs/taro: 3.3.3 => 3.3.3 
      @tarojs/webpack-runner: 3.3.3 => 3.3.3 
      babel-preset-taro: 3.3.3 => 3.3.3 
      eslint-config-taro: 3.3.3 => 3.3.3 
      react: ^17.0.2 => 17.0.2 
      react-native: ^0.66.0 => 0.66.5 
    npmGlobalPackages:
      typescript: 5.1.3

补充信息

在执行 yarn build:rn --platform ios 时候跟视频内容有出入,不知道是不是
meta@metadeMacBook-Pro app % yarn build:rn --platform ios
yarn run v1.22.10
$ taro build --type rn --platform ios
👽 Taro v3.3.3

                Welcome to Metro!
          Fast - Scalable - Integrated

transform[stdout]: 启动 样式文件处理开始 src/app.scss
transform[stderr]: DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
transform[stderr]:
transform[stderr]: More info: https://sass-lang.com/d/legacy-js-api
transform[stderr]:
transform[stdout]: 启动 样式文件处理开始 src/pages/index/index.scss
transform[stderr]: DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
transform[stderr]:
transform[stderr]: More info: https://sass-lang.com/d/legacy-js-api
transform[stderr]:
transform[stdout]: 编译 样式文件处理完毕 src/app.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/index/index.scss
Writing bundle output to: ios/main.jsbundle
Writing sourcemap output to: ./ios/main.map
Done writing bundle output
Done writing sourcemap output
transform[stdout]: 启动 样式文件处理开始 src/app.scss
info Copying 4 asset files
info Done copying assets
transform[stdout]: 编译 样式文件处理完毕 src/app.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/index/index.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/index/index.scss
transform[stderr]: DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
transform[stderr]:
transform[stderr]: More info: https://sass-lang.com/d/legacy-js-api
transform[stderr]:
transform[stderr]: DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
transform[stderr]:
transform[stderr]: More info: https://sass-lang.com/d/legacy-js-api
transform[stderr]:
✨ Done in 10.62s.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-reactFramework - ReactT-rnTarget - 编译到 React NativeV-3Version - 3.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions