最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Error laravel project with a blade SourceMap - Stack Overflow

programmeradmin0浏览0评论

I have a laravel project with a blade, and it worked perfectly, and overnight, it stopped working with this error:

DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/js/html2canvas.js.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/css/bootstrap.min.css.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/css/metisMenu.css.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/js/popper.min.js.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/js/bootstrap.min.js.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/js/metisMenu.min.js.map

my JavaScript files are called normally in blade with:

{{URL::asset('assets/js/html2canvas.js')}}

The default view of laravel has no errors... I've tested it on windows and macos, and also on shared hosting, the same error happens.

I have a laravel project with a blade, and it worked perfectly, and overnight, it stopped working with this error:

DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/js/html2canvas.js.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/css/bootstrap.min.css.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/css/metisMenu.css.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/js/popper.min.js.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/js/bootstrap.min.js.map
DevTools failed to parse SourceMap: http://127.0.0.1:8000/assets/js/metisMenu.min.js.map

my JavaScript files are called normally in blade with:

{{URL::asset('assets/js/html2canvas.js')}}

The default view of laravel has no errors... I've tested it on windows and macos, and also on shared hosting, the same error happens.

Share Improve this question asked Mar 2, 2020 at 19:02 Isaque PalmieriIsaque Palmieri 972 gold badges2 silver badges10 bronze badges 6
  • I'm guessing you're always testing in Chrome and not another browser. stackoverflow./questions/36051891/… – aynber Commented Mar 2, 2020 at 19:08
  • yes, i use chrome to test, but the same error happens in firefox. I've cleaned up caches and returned some versions of git, but it still doesn't work. – Isaque Palmieri Commented Mar 2, 2020 at 19:12
  • just a wild guess .. have you tried adding a / at the beginning of the string? as in {{URL::asset('/assets/js/html2canvas.js')}} – Lotfi Commented Mar 2, 2020 at 19:26
  • Those errors really shouldn't stop your site from working. Are you seeing any other errors anywhere? – aynber Commented Mar 2, 2020 at 19:27
  • Are you using an assets build process? Did you build to production? – CUGreen Commented Mar 2, 2020 at 21:45
 |  Show 1 more ment

1 Answer 1

Reset to default 2

that was the solution link, but I had some problems debugging a js script so I needed to solve it.

Thank you all for your help!

发布评论

评论列表(0)

  1. 暂无评论