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

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

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!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745507468a4630616.html

相关推荐

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

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

    5小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信