Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module build failed (from ./node_modules/vue-loader/dist/index.js): TypeError: Cannot read property 'styles' of undefined at Object.loader

I am using laravel and vuejs to create event calendar. i am trying run npm run dev but there is an error

ERROR in ./resources/js/components/CalendarComponent.vue Module build failed (from ./node_modules/vue-loader/dist/index.js): TypeError: Cannot read property 'styles' of undefined at Object.loader (D:\20213\calendar_with_vue\node_modules\vue-loader\dist\index.js:70:34)

like image 477
Phuong Do Avatar asked Jan 31 '26 04:01

Phuong Do


1 Answers

I have faced the same problem. And I use below command its work.Thanks

npm install vue-template-compiler@latest vue@latest
like image 124
S. M. Ashikur Rahman Avatar answered Feb 01 '26 18:02

S. M. Ashikur Rahman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!