我尝试使用react原生窗口构建一个用于侧加载的版本appx,但得到了以下错误
Error
MSB3073
The command " cd C:\Users<user>\source\repos\appxtest\windows.. react-native bundle --platform windows --entry-file index.js --bundle-output windows/appxtest/Bundle/index.windows.bundle --assets-dest windows/appxtest/Bundle " exited with code 9009当我启用verbose build“Tools > Option>项目和解决方案> build and run,并将"MsBuild项目build output verbose”更改为"Diagnostic“
我得到了这个日志
7>C:\Users\source\repos\appxtest\node_modules\react-native-windows\PropertySheets\Bundle.Common.targets(13,9):error MSB3073:命令“7>C:\Users\source\repos\appxtest\node_modules\react-native-windows\PropertySheets\Bundle.Common.targets(13,9):error MSB3073: cd MSB3073”7>C:\Users\source\repos\appxtest\node_modules\react-native-windows\PropertySheets\Bundle.Common.targets(13,9):错误包: react-native捆绑包--平台窗口--入口文件捆绑包--捆绑包-输出窗口/appxtest/ bundle /index.windows.bundle-- 7>C:\Users\source\repos\appxtest\node_modules\react-native-windows\PropertySheets\Bundle.Common.targets(13,9):-MSB3073窗口/appxtest/捆绑包index.js错误MSB3073:“退出,代码为9009。
。
我能够建立一个成功的Debug appx。有没有人可以指导我如何用react原生窗口构建版本appx?
发布于 2020-04-08 15:50:16
将react-native CLI作为全局
使用以下命令: npm install -g react-native-cli
https://stackoverflow.com/questions/60906425
复制相似问题