laravel source map error 404

This forum covers all versions of Laravel.
Post Reply
User avatar
Site Admin
Posts: 1616
Joined: Thu Mar 22, 2018 10:19 am

laravel source map error 404

Post by Administrator » Mon Mar 16, 2020 7:52 pm

If you are seeing the error, source map error 404 within the browsers console and you are using webpack within your project. The best and easiest way to remove this message is to add .sourceMaps() to the webpack configuration file.

this also works with react.

Code: Select all

mix.react('resources/js/app.js', 'public/js').sourceMaps()
   .sass('resources/sass/admin/app.scss', 'public/css/admin/app.css')
   .sass('resources/sass/app.scss', 'public/css/app.css');

Post Reply