简体   繁体   English

JavaScript无法加载资源:找不到文件,但是该文件是Laravel自动生成的视图

[英]JavaScript failed to load resource: file not found, but the file is a Laravel auto-generated view

This is a problem that I just now encountered. 这是我刚才遇到的一个问题。 When I go to certain pages within my application, I see an error in the dev console that says: 当我转到应用程序中的某些页面时,在开发控制台中看到一条错误消息:

inject.preload.js:373 GET blob:http://my-app-name.test/ba65127c-383e-45b7-8159-9b52ea288658 0 ()

So, when I go to inject.preloader.js , and I find the line that is throwing the error, it says Failed to load resource: net::ERR_FILE_NOT_FOUND . 因此,当我转到inject.preloader.js ,我发现抛出该错误的行,它说Failed to load resource: net::ERR_FILE_NOT_FOUND

That's fine. 没关系。 I know how to normally fix that error. 我知道如何正常修复该错误。 But since I'm working with laravel for the first time, I believe that the file it's talking about is one of the files Laravel automatically generates in App/storage/frameworks/views/ . 但是,由于我是第一次使用laravel,因此我相信它所谈论的文件是Laravel在App/storage/frameworks/views/自动生成的文件之一。 And if that's the case, how do I fix this error? 如果是这样,我该如何解决此错误?

The error doesn't actually impact anything. 该错误实际上并没有影响任何东西。 The pages it appears on are all functioning normally as far as I can tell, and there don't seem to be any issues in the blade files. 据我所知,它显示的页面都正常运行,并且刀片文件中似乎没有任何问题。

I was just curious if anyone else had encountered an issue like this before. 我只是好奇是否有人遇到过这样的问题。 I haven't changed my blade template used for the headers and scripts, and the only thing I changed in the page that is throwing the error is adding a bootstrap 4 modal. 我没有更改用于页眉和脚本的刀片模板,并且在页面中发生错误的唯一更改是添加了bootstrap 4模态。

I can link to a github repo if needed. 如果需要,我可以链接到github仓库。

我不知道为什么要修复它,但是我将我的javascripts包含在master.blade.php模板中,这不再是问题。

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

相关问题 将 javascript 自动生成的文件附加到 POST 表单并在 $_FILES 中的 PHP 上处理它 - Append javascript auto-generated file to POST form and process it on PHP in $_FILES Javascript XHR 向 php 文件发送请求:加载资源失败:服务器响应状态为 404(未找到) - Javascript XHR Post Request to php file: Failed to load resource: the server responded with a status of 404 (Not Found) 加载资源失败:.net::ERR_FILE_NOT_FOUND jquery - Failed to load resource: net::ERR_FILE_NOT_FOUND jquery 无法加载资源404(未找到) - 文件位置错误? - Failed to load resource 404 (Not Found) - file location error? Electron - 无法加载资源:.net::ERR_FILE_NOT_FOUND - Electron - Failed to load resource: net::ERR_FILE_NOT_FOUND 无法加载资源:net::ERR_FILE_NOT_FOUND in angular - Failed to load resource: net::ERR_FILE_NOT_FOUND in angular 自动生成元素上的不显眼的 JavaScript 事件 - Unobtrusive JavaScript event on auto-generated elements Laravel,找不到Javascript文件 - Laravel, Javascript file is not found Node.js:从PHP URL下载(自动生成的)文件 - Node.js: Download an (auto-generated) file from a PHP URL 无法加载资源:net::ERR_FILE_NOT_FOUND,未捕获(承诺中)类型错误:无法获取 - Failed to load resource: net::ERR_FILE_NOT_FOUND, Uncaught (in promise) TypeError: Failed to fetch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM