I'm having an issue with laravel-mix, using Laravel 5.6. Every time i execute npm run dev, the console execution stops at 95% emitting:
@ dev C:\Users\ricky\Dropbox\Projects\52-TARCS\src\tarcs
npm run development
@ development C:\Users\ricky\Dropbox\Projects\52-TARCS\src\tarcs
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
95% emitting
Created a clean Laravel 5.6 project, executed npm install and then npm run dev.
I've been searching online and found many people with the same issue that solved it specifying the public path in webpack.mix.js:
mix.setPublicPath("./");
or
mix.options({
publicPath: './'
});
In my case haven't been able to solve the problem.
My current webpack.mix.js settings:
let mix = require('laravel-mix');
mix.setPublicPath("./"); //mix.setPublicPath("./public");
/*mix.options({
publicPath: './' //publicPath: './public'
});*/
mix.js('resources/assets/js/app.js', 'public/js');
mix.sass('resources/assets/sass/app.scss', 'public/css');
My system specs:
- Windows 10 x64 (version 1803);
- Node: 10.0.0;
- NPM: 5.6.0;
- Laravel 5.6;
How can i solve my issue?