[英]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.