I've used Vue a lot in my Laravel projects and never in my life I had to use .vue() in Mix. Always used .js(). What's the issue you're encountering with .js()?
Dec 24, 2020
8
Level 39
.vue() in webpack.mix.js?
HI all,
I have a Vue.js component that works in a Laravel8 project.
To compile, I have to add .vue() in my webpack.mix.js
I don't remember where I found this 'trick', I see nothing in the Laravel doc that says that 'No further configuration is required:'
https://laravel.com/docs/8.x/mix#vue
Does sb has an explanation?
Thanks in advance.
Level 7
Check which version of Laravel Mix you have installed, and which docs you're referencing. The latest version 6.0 introduced the new vue() method and you can see the documentation for this new version here. The new Laravel app scaffold and docs still reference the previous version 5.0 for the time being.
2 likes
Please or to participate in this conversation.