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
1 Answer
Reset to default 2that 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!