Forum

laravel - cant comp...
 
Notifications
Clear all

laravel - cant compile vue components

1 Posty
1 Users
0 Reactions
812 Widok
0
Topic starter
ERROR in ./resources/js/components/myComponent/baseComponent.vue 1:0
Module parse failed: Unexpected token (1:0)
1 Answer
0
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');

Odpowiedź

Author Name

Author Email

Your question *

Preview 0 Revisions Saved
Share: