簡體   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