-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vuetify-loader 1.6 is incompatible with laravel mix #144
Comments
Can you show your webpack config? |
I get the same error and had to revert to 1.5. I am using Laravel Mix 5.0.x for bundling. |
I get the same issue, also using Laravel Mix 5.0 for bundling. I reduced it to a minimal case to reproduce the issue:
const mix = require('laravel-mix');
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.webpackConfig({
plugins: [
new VuetifyLoaderPlugin({
options: {}
}),
]
});
|
Ugh of course it's laravel again, I even noted that the plugin order is unexpected in 9fb6ec3 |
Laravel Mix indeed seems to be the culprit as I'm also using it. My webpack config is a bit of a mess but here it is:
|
Hi there! I have this bug while updating. Your webpack config doesn't clear for me how to fix that. What I've found:
build is finishing successfuly. |
That is not a solution, you're effectively disabling the plugin entirely. If you're using laravel you should stay on 1.5 until this is fixed. |
Ok, got it. Thanks for answer. |
Having the same issue here with Laravel Mix. I was able to downgrade vuetify-loader as a temporary fix. Hoping a more permanent fix is found, though. |
I discovered that mix extensions have access to the full webpack config, unlike the mix.extend('vuetify', new class {
webpackConfig (config) {
config.plugins.push(new VuetifyLoaderPlugin())
}
})
mix.vuetify()
Laravel is great, but its entire JS setup is garbage. I always use either a custom webpack config or vue-cli when I have to work with it. |
I can confirm that 1.6 is not working with laravel mix and I'm already using https://github.com/Nothing-Works/vuetifyjs-mix-extension I just downgrade to 1.5 for the meantime. |
I can confirm that by doing these two things together, the issue is resolved with the latest Vuetify Loader. Shout out to @KaelWD for this.
|
@KaelWD Thank you for your great work. I removed my https://github.com/Nothing-Works/vuetifyjs-mix-extension Npm run dev didn't create the problems anymore (match) Doesn't work anymore. Again, thank you. Will patiently wait for further instructions. |
Ah yeah I forgot to mention that you need |
I'm experiencing exactly the same problem without using laravel.
It runs fine against |
Swap |
Worked like a charm. |
I got the same issue and was blocked for 2 days. |
Saved me lots of trouble as well. Thanks for the solution @KaelWD 👍 |
There's still a BUG on this 1.6 release. Let me know what I can do to make it work. Thank you so much |
Thanks all the hard work from @KaelWD and I want to say that the latest version of vuetifyjs-mix-extension does everything for you. You can simply do this here is the doc and code repo. here is a sample laravel app using NOTE: This extension only supports |
Thank you @KaelWD and @laberning |
Thank you @KaelWD, your solution save me. |
This has now been fixed upstream: laravel-mix/laravel-mix@b112e13 Currently unreleased but I'm guessing it will be in mix v6.0.7 |
@KaelWD Ah I'm very sorry to come looking again for help, but I've upgraded to mix 6.0.11, and the latest My simple mix file const mix = require('laravel-mix');
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin');
mix
.js('resources/js/app.js', 'public/js')
.webpackConfig({
plugins: [new VuetifyLoaderPlugin()]
})
.vuetify()
.vue(); The error when I run
What simple thing am I missing here. It DOES work if I go back to using your work around above. But this has me curious! Thanks. |
@jonnywilliamson you don't need call to vuetify() because you're already using it in |
Ahh, ok. I knew it would be simple. Thank you. I assumed because we now use |
After many issues, I solve this on Laravel 8.
|
Man, your tips are still valid and still working! Thank you VERY VERY MUCH!!! You can not even imagine how much time I lost, so THANK YOU one more time! |
After updating vuetify-loader from 1.5 to 1.6 I get the error message below. Downgrading from 1.6 to 1.5 solves the error message.
The text was updated successfully, but these errors were encountered: