2

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.

Isaque Palmieri
  • 97
  • 2
  • 2
  • 9
  • I'm guessing you're always testing in Chrome and not another browser. https://stackoverflow.com/questions/36051891/esri-failed-to-parse-source-map – aynber Mar 02 '20 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 Mar 02 '20 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 Mar 02 '20 at 19:26
  • Those errors really shouldn't stop your site from working. Are you seeing any other errors anywhere? – aynber Mar 02 '20 at 19:27
  • Are you using an assets build process? Did you build to production? – CUGreen Mar 02 '20 at 21:45
  • that was the solution, but I had some problems debugging a js script so I needed to solve it. [link](https://stackoverflow.com/questions/36051891/esri-failed-to-parse-source-map) – Isaque Palmieri Mar 04 '20 at 13:54

1 Answers1

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!

Isaque Palmieri
  • 97
  • 2
  • 2
  • 9