We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
./assets/img/bar/my-icon-normal.png
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
相关平台
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
fromrn_temp/app.js
:期望结果
编译时图片等资源文件拷贝到对应的rn_temp目录
实际结果
无法找到图片资源文件
环境信息
The text was updated successfully, but these errors were encountered: