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_temp目录 #7464

Open
davistsin opened this issue Aug 28, 2020 · 0 comments
Open
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-2 Version - 2.x

Comments

@davistsin
Copy link

相关平台

React Native

使用框架: React

复现步骤

将rn_temp文件夹删除,执行 cross-env TARO_APP_TYPE=rn TARO_APP_API=pre npx taro build --type rn。发生报错
error Unable to resolve module ./assets/img/bar/my-icon-normal.png from rn_temp/app.js:

期望结果

编译时图片等资源文件拷贝到对应的rn_temp目录

实际结果

无法找到图片资源文件

环境信息

  Taro CLI 2.2.13 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.20.1 - /usr/local/bin/node
      Yarn: 1.21.1 - /usr/local/bin/yarn
      npm: 6.14.4 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 2.2.13 => 2.2.13 
      @tarojs/components: 2.2.13 => 2.2.13 
      @tarojs/components-qa: 2.2.13 => 2.2.13 
      @tarojs/components-rn: 2.2.13 => 2.2.13 
      @tarojs/mini-runner: 2.2.13 => 2.2.13 
      @tarojs/mobx: 2.2.13 => 2.2.13 
      @tarojs/mobx-h5: 2.2.13 => 2.2.13 
      @tarojs/mobx-rn: 2.2.13 => 2.2.13 
      @tarojs/plugin-less: 2.2.13 => 2.2.13 
      @tarojs/rn-runner: 2.2.13 => 2.2.13 
      @tarojs/router: 2.2.13 => 2.2.13 
      @tarojs/taro: 2.2.13 => 2.2.13 
      @tarojs/taro-alipay: 2.2.13 => 2.2.13 
      @tarojs/taro-h5: 2.2.13 => 2.2.13 
      @tarojs/taro-qq: 2.2.13 => 2.2.13 
      @tarojs/taro-quickapp: 2.2.13 => 2.2.13 
      @tarojs/taro-redux-rn: 2.2.13 => 2.2.13 
      @tarojs/taro-rn: 2.2.13 => 2.2.13 
      @tarojs/taro-router-rn: 2.2.13 => 2.2.13 
      @tarojs/taro-swan: 2.2.13 => 2.2.13 
      @tarojs/taro-tt: 2.2.13 => 2.2.13 
      @tarojs/taro-weapp: 2.2.13 => 2.2.13 
      @tarojs/webpack-runner: 2.2.13 => 2.2.13 
      eslint-config-taro: 2.2.13 => 2.2.13 
      eslint-plugin-taro: 2.2.13 => 2.2.13 
      nerv-devtools: ^1.5.7 => 1.5.7 
      nervjs: ^1.5.7 => 1.5.7 
      react: 16.11.0 => 16.11.0 
      react-native: ^0.62.0 => 0.62.2 
      stylelint-config-taro-rn: 2.2.13 => 2.2.13 
      stylelint-taro-rn: 2.2.13 => 2.2.13
@taro-bot2 taro-bot2 bot added F-react Framework - React T-rn Target - 编译到 React Native V-2 Version - 2.x labels Aug 28, 2020
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-2 Version - 2.x
Projects
None yet
Development

No branches or pull requests

1 participant