avatar
文章
258
標籤
80
分類
44

首頁 Home
分類 Categories
  • 項目分類 Categories
  • 標籤 Tags
  • 書籍
  • 圖庫
  • 時間軸 Archives
休閒 Casual
  • 遊戲
  • 影片
  • 音樂
備註 Notes
  • 筆記
友鏈 Link
John Conte
搜尋
首頁 Home
分類 Categories
  • 項目分類 Categories
  • 標籤 Tags
  • 書籍
  • 圖庫
  • 時間軸 Archives
休閒 Casual
  • 遊戲
  • 影片
  • 音樂
備註 Notes
  • 筆記
友鏈 Link

【Angular】error Unknow argument prod錯誤

發表於2023-07-21|更新於2025-05-07|前端技術Angular
|閱讀量:

Error Unknow argument prod

當初使用時, ng build --prod已經無法使用這指令,請使用下方指令排除現狀。

1
ng build --configuration production

備註

Angular 14 之後版本已經移除 --prod指令,改為 --configuration production。

Angular Cli

參考文件

  • ithome : https://ithelp.ithome.com.tw/articles/10195372
  • stackoverflow : https://stackoverflow.com/questions/73156911/ng-build-prod-error-unknown-argument-prod
文章作者: John Conte
文章連結: https://jontcont.github.io/2023/07/21/%E5%89%8D%E7%AB%AF%E6%8A%80%E8%A1%93/%E3%80%90Angular%E3%80%9108%20%E7%99%BC%E4%BD%88%E6%99%82%E7%99%BC%E7%94%9F%20error%20Unknow%20argument%20prod%20%E9%8C%AF%E8%AA%A4%20/
版權聲明: 本部落格所有文章除特別聲明外,均採用 CC BY-NC-SA 4.0 許可協議。轉載請註明來自 John Conte!
Angular
cover of previous post
上一篇
Angular (二) - component 與 router 介紹與實作
cover of next post
下一篇
【Angular】發行到IIS時,如何加入Config加入方式
相關推薦
cover
2023-01-25
Angular (一) -練習Router使用方式
cover
2023-07-26
Angular (三) - router子層作法
cover
2023-07-25
Angular (二) - component 與 router 介紹與實作
cover
2023-09-23
Angular (四) - component生命週期
cover
2023-10-17
【Angular (6)】跨越 component 讀取資料
cover
2023-09-25
Angular (五) - @Input、@Output 使用方式
cover
2023-10-23
【Angular】07 使用IndexedDb
cover
2023-07-20
【Angular】發行到IIS時,如何加入Config加入方式

評論
DisqusGitalk
avatar
John Conte
John Conte Blog
文章
258
標籤
80
分類
44
Follow Me
公告
目錄
  1. 1. Error Unknow argument prod
    1. 1.1. 備註
    2. 1.2. Angular Cli
  2. 2. 參考文件
最新文章
[Github Pages] 如何建立多個專案網站
[Github Pages] 如何建立多個專案網站2025-05-07
【VSC】如何共同開發階段程式排版設定方式
【VSC】如何共同開發階段程式排版設定方式2025-05-07
【ChatGPT】使用學習工具篇
【ChatGPT】使用學習工具篇2025-05-07
[Benchmarks] Database Connect 效能差異
[Benchmarks] Database Connect 效能差異2025-05-07
[DB] 使用 VS Code Query DB2025-05-07
©2020 - 2025 By John Conte
框架 Hexo|主題 Butterfly
搜尋
資料庫載入中