Closed caoguoli closed 5 years ago
@caoguoli 感谢您提出宝贵的 issue,我会通知开发尽快处理!
老的分支包,尝试打包能正常打包。
将 node_modules 删除 ,再 npm install --save react-native-root-toast ,仍打包失败!
Unable to resolve module react-native-root-toast from /home/ocean/mesos/sandbox/data/MIOT_SDK_10026_1568798191321678168/compile/projects/com.deye.chushiji/Main/UIComponent/ToastExample.js 你们是自己加了react-native-root-toast这个第三方库吗? 你们需要在miot-plugin-sdk/project/com.deye.chushiji 里面执行npm install --save react-native-root-toast
@caoguoli 你米家开发u20a3的程序?现在有发布了吗
是否为新品(必填) 新品
关联的产品model “deye.derh.u20a3”
项目ID(必填) 【504】
用户ID(必填) 【1342000640】
企业名称(必填) 宁波德业日用电器科技有限公司
环境(必填) -电脑操作系统:[Windows] -手机系统:[MI8,Android 版本:9] -测试包版本:[5.5.25.5、5.5.41.1] -SDK分支: [10004] -相关模块:[EMW3080BP]
现象(必填) 新扩展程序开发,下载的最新分支包,本地运行都正常,打包生成 publish.mpkg ,上传到小米开发者平台,打包失败!!!
期望(必填) 新扩展程序开发,下载的最新分支包,本地运行都正常,打包生成 publish.mpkg ,上传到小米开发者平台,打包成功,能正常运行。
其他的上下文/日志/截图 {"Cmd":"/usr/local/node-v8.12.0-linux-x64/bin/node","PID":14811,"Complete":true,"Exit":1,"Error":null,"StartTs":1568798202717169582,"StopTs":1568798281298775110,"Runtime":78.58160559,"Stdout":["/home/ocean/mesos/sandbox/data/MIOT_SDK_10026_1568798191321678168/compile/projects/temp_c5fb2cbe_d59c_45b0_b10b_50d79f9ebe1d","================================","/home/ocean/mesos/sandbox/data/MIOT_SDK_10026_1568798191321678168/compile/bin/buildBundle.js --android --target /tmp/1568798202717111067/release/android com.deye.chushiji","/home/ocean/mesos/sandbox/data/MIOT_SDK_10026_1568798191321678168/compile","","[MIOT]start to build android bundle for com.deye.chushiji","","compile /home/ocean/mesos/sandbox/data/MIOT_SDK_10026_1568798191321678168/compile/projects/com.deye.chushiji","","output /tmp/1568798202717111067/release/android","","Loading dependency graph, done.","","","FIXBUG node_modules/react-navigation/src/createNavigationContainer.js","","FIXBUG node_modules/react-navigation-stack/dist/views/Header/HeaderBackButton.js","","FIXBUG node_modules/react-native-sqlite-storage/lib/sqlite.core.js","","FIXBUG node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-prod.js","","error:","","error:Unable to resolve module
react-native-root-toast
from/home/ocean/mesos/sandbox/data/MIOT_SDK_10026_1568798191321678168/compile/projects/com.deye.chushiji/Main/UIComponent/ToastExample.js
: Module does not exist in the module map","","This might be related to https://github.com/facebook/react-native/issues/4968","To resolve try the following:"," 1. Clear watchman watches:watchman watch-del-all
."," 2. Delete thenode_modules
folder:rm -rf node_modules \u0026\u0026 npm install
."," 3. Reset Metro Bundler cache:rm -rf /tmp/metro-bundler-cache-*
ornpm start -- --reset-cache
. 4. Remove haste cache:rm -rf /tmp/haste-map-react-native-packager-*
.","",""],"Stderr":[]}