daito's avatar
Level 1

Laravel Mix v6 Watch

Hi !

Since I update from Vue2 to Vue3 and Laravel Mix v6, I got this error when I run npm run watch :

[webpack-cli] Error: The loaded module contains errors

It compile well the first time but I got this error when webpack tries to reload after changes.

I have no idea from where it can come from, and I found nothing on the internet...

0 likes
4 replies
piljac1's avatar

Is this thr only error .essaie you get or you have more info? Like a stack trace or something.

daito's avatar
Level 1

No I've got a trace too, but Laracasts detects it as links and I can't send links the first day of my registration...

daito's avatar
Level 1
[webpack-cli] Error: The loaded module contains errors
    at C:\xampp\htdocs\shareyourproject\node_modules\webpack\lib\dependencies\LoaderPlugin.js:79:11
    at C:\xampp\htdocs\shareyourproject\node_modules\webpack\lib\Compilation.js:1568:8
    at C:\xampp\htdocs\shareyourproject\node_modules\webpack\lib\util\AsyncQueue.js:312:5
    at Hook.eval [as callAsync] (eval at create (C:\xampp\htdocs\shareyourproject\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncQueue._handleResult (C:\xampp\htdocs\shareyourproject\node_modules\webpack\lib\util\AsyncQueue.js:284:21)
    at C:\xampp\htdocs\shareyourproject\node_modules\webpack\lib\util\AsyncQueue.js:267:11
    at C:\xampp\htdocs\shareyourproject\node_modules\webpack\lib\Compilation.js:1271:15
    at C:\xampp\htdocs\shareyourproject\node_modules\webpack\lib\HookWebpackError.js:69:3
    at Hook.eval [as callAsync] (eval at create (C:\xampp\htdocs\shareyourproject\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at Cache.store (C:\xampp\htdocs\shareyourproject\node_modules\webpack\lib\Cache.js:107:20)
rocketvalley's avatar

I have this exact same problem! I am using mix.ts() if this helps someone figure out the problem.

Please or to participate in this conversation.