DEV Community

vanamos12
vanamos12

Posted on

Resolution error laravel, cannot process vue file

I you enconter this error in larevel when executing npm run dev with vue files :

currently no loaders are configured to process this file .vue

go in webpack.mix.js add .vue() like
mix.js('resources/js/app.js', 'public/js').vue()
.postCss('resources/css/app.css', 'public/css', []);

Rerun npm run dev
If there is still an error run npm i vue-loader@latest
Run npm run dev and all should be okay

Top comments (0)