簡體   English   中英

構建后,我們得到 argon-dashboard-react/static/js/main.e8eb0f76.chunk.js net::ERR_ABORTED 404 (Not Found)

[英]After the build, we are getting argon-dashboard-react/static/js/main.e8eb0f76.chunk.js net::ERR_ABORTED 404 (Not Found)

我正在從 creative-tim URL 為我的應用程序使用argon-dashboard-react免費模板: https://demos.creative-tim.com/argon-dashboard-react/#/admin/index ,一切正常,但是當我將所有的 URL 與 /argon-dashboard-react 一起構建,預期的 URL 結構 /static/js/main.e8eb0f76.chunk.js, OUT PUT : /argon-dashboard-react/static/js/main.e8eb0f76.chunk .js

請參閱我的屏幕截圖以獲取更多說明本地路徑本地路徑 生產路徑生產路徑

要解決此問題,請從 package.json 文件中刪除 homepage prop,然后再次運行 build 命令(同樣,在此之前刪除舊構建)。

它對我來說很好用

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM