doujinai2183 2018-06-28 20:19
浏览 75
已采纳

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

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.

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/. 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.

I can link to a github repo if needed.

  • 写回答

1条回答 默认 最新

  • duanmei1350 2018-06-28 20:23
    关注

    I don't know why this fixed it, but I moved my javascripts includes in the master.blade.php template, and it's not a problem anymore.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?