vue.js:1 Failed to load resource: the server responded with a status of 404
时间: 2023-10-19 21:34:59 浏览: 148
根据你提供的引用内容,你遇到了一个加载vue.js资源的问题,并且返回了404错误。为了解决这个问题,可以尝试以下几种方法。
第一种方法是修改config文件夹中的index.js文件,找到assetsPublicPath并将其修改为"./"。这将使资源的路径相对于当前目录。
第二种方法是将vue.js文件下载到本地,并在项目中创建一个新的vue.js文件。然后将从"https://unpkg.com/vue@next"链接中复制的代码粘贴到新建的vue.js文件中,并通过script标签引入本地的vue.js文件。这样可以避免依赖外部链接的问题。
通过尝试以上方法,你应该能够解决vue.js资源加载失败的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【已解决】Vue网页强制刷新提示Failed to load resource:the server responded with a status of :5500/...](https://blog.csdn.net/yolo_______95/article/details/126915546)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [vue打包npm run build时候界面报错的解决](https://download.csdn.net/download/weixin_38626943/13128820)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [使用Cdn引入vue.js控制台报错Failed to load resource: the server responded with a status of 404 (Not ...](https://blog.csdn.net/blackbak/article/details/129912594)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文