繁体   English   中英

无法构建反应本机 Windows 发布版本

[英]Unable to build react native windows release build

我尝试构建一个发布 appx 以使用 react native windows 进行侧载,但出现以下错误

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

当我启用详细构建时“工具>选项>项目和解决方案>构建并运行,并将“MsBuild项目构建输出详细程度”更改为“诊断”

我得到这个日志

7>C:\\Users\\source\\repos\\appxtest\\node_modules\\react-native-windows\\PropertySheets\\Bundle.Common.targets(13,9):错误MSB3073:命令“7>C:\\Users\\source\\repos \\appxtest\\node_modules\\react-native-windows\\PropertySheets\\Bundle.Common.targets(13,9): error MSB3073: cd C:\\Users\\naveen\\source\\repos\\appxtest\\windows.. 7>C:\\Users \\source\\repos\\appxtest\\node_modules\\react-native-windows\\PropertySheets\\Bundle.Common.targets(13,9): error MSB3073: react-native bundle --platform windows --entry-file index.js --bundle -output windows/appxtest/Bundle/index.windows.bundle --assets-dest windows/appxtest/Bundle 7>C:\\Users\\source\\repos\\appxtest\\node_modules\\react-native-windows\\PropertySheets\\Bundle.Common。目标(13,9):错误 MSB3073:“以代码 9009 退出。

.

我能够构建一个成功的调试应用程序。 有人可以指导我如何使用 react native windows 构建发布 appx

将 react-native CLI 安装为全局

使用这个命令: npm install –g react-native-cli

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM