vuetifyjs-mix-extension icon indicating copy to clipboard operation
vuetifyjs-mix-extension copied to clipboard

No longer works with latest vuetify-loader

Open ZakDaMack opened this issue 2 years ago • 1 comments

This extension now causes the error: Error: Cannot find module 'vuetify-loader/lib/plugin'

Looking into the future, with Vuetify 3 aiming to be released in May 2022. Vuetify 3 is using a new version of vuetify-loader ([email protected]) which now has a different package structure to before and is imported as const { VuetifyLoaderPlugin } = require('vuetify-loader')

As a workaround, I updated the addVuetifyLoader method in index.js to the below, which seems to work:

addVuetifyLoader(config) {
    const { VuetifyLoaderPlugin } = require('vuetify-loader')
    config.plugins.push(new VuetifyLoaderPlugin(this.vuetifyLoaderOptions))
}

I am not sure if there are any other changes to VuetifyLoaderPlugin and I will aim to look into this in the next couple of days, but seems to be working again so far. With Vuetify 3 releasing soon, I believe many others may start looking for an update to this extension.

ZakDaMack avatar Apr 08 '22 17:04 ZakDaMack