Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
840
Widok
0
21/07/2021 8:42 pm
Topic starter
ERROR in ./resources/js/components/myComponent/baseComponent.vue 1:0 Module parse failed: Unexpected token (1:0)
1 Answer
0
21/07/2021 8:43 pm
Topic starter
open webpack.mix.js and add .vue() to js method
from
const mix = require('laravel-mix'); mix.js('resources/js/app.js', 'public/js'); mix.sass('resources/sass/app.scss', 'public/css');
to
const mix = require('laravel-mix');
mix.js('resources/js/app.js', 'public/js').vue();
mix.sass('resources/sass/app.scss', 'public/css');