Closed massiws closed 6 years ago
When I compile assets with npm run dev I get this error:
npm run dev
Laravel Mix Error: ./bootstrap Can't resolve 'bootstrap-sass' in /var/www//resources/assets/js
Laravel Mix
Error: ./bootstrap Can't resolve 'bootstrap-sass' in /var/www//resources/assets/js
To fix this you need to comment out line 13 in resources/assets/js/bootstrap.js
resources/assets/js/bootstrap.js
10 try { 11 window.$ = window.jQuery = require('jquery'); 12 13 // require('bootstrap-sass'); 14 } catch (e) {}
Have you tried running php artisan preset none first to remove bootstrap?
php artisan preset none
Usually preset none is not required. Try the new release. It should be fine now.
preset none
It works! Thank you
When I compile assets with
npm run dev
I get this error:To fix this you need to comment out line 13 in
resources/assets/js/bootstrap.js