Closed Mohanrau closed 3 years ago
This helped me to get around the issue:
// webpack.config.js
resolve: {
alias: {
'vue-wait$': 'vue-wait/src/vue-wait.js'
}
}
This should be fixed with the version v1.5.1
@f Thanks! But I got this error on 1.5.1:
TS2345: Argument of type 'Object' is not assignable to parameter of type 'Plugin_2'.
The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?
The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?
Property 'install' is missing in type 'Object' but required in type '{ install: PluginInstallFunction; }'.
Workaround:
import {Plugin, createApp} from 'vue';
import {createVueWait} from 'vue-wait'
const app = createApp(Index)
.use(createVueWait({...}) as Plugin)
.mount('#app');
@vue/cli 4.5.13