[Bug Report] npm run build error
See original GitHub issueEnvironment
Vuetify Version: 2.2.11 Last working version: 2.2.11 Vue Version: 2.6.1 Browsers: Chrome 87.0.4280.88 OS: Windows 10
Steps to reproduce
I added typescript to an existing project. The following error occurs when executing the npm run build
command:
ERROR Failed to compile with 1 errors11:14:41 AM error in /builds/sales-and-inventory-management-group/sims-frontend/src/main.ts ERROR in /builds/sales-and-inventory-management-group/sims-frontend/src/main.ts(13,9): 13:9 No overload matches this call. Overload 1 of 2, ‘(plugin: PluginObject<unknown> | PluginFunction<unknown>, options?: unknown): VueConstructor<Vue>’, gave the following error. Argument of type ‘Vuetify’ is not assignable to parameter of type ‘PluginObject<unknown> | PluginFunction<unknown>’. Property ‘install’ is missing in type ‘Vuetify’ but required in type ‘PluginObject<unknown>’. Overload 2 of 2, ‘(plugin: PluginObject<any> | PluginFunction<any>, …options: any[]): VueConstructor<Vue>’, gave the following error. Argument of type ‘Vuetify’ is not assignable to parameter of type ‘PluginObject<any> | PluginFunction<any>’. Property ‘install’ is missing in type ‘Vuetify’ but required in type ‘PluginObject<any>’. 11 | 12 | Vue.use(VueTheMask);
13 | Vue.use(Vuetify); | ^ 14 | Vue.use(Vue2Editor); 15 | Vue.use(VueToastr); 16 | ERROR Build failed with errors. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sims-frontend@0.1.0 build:
vue-cli-service build
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sims-frontend@0.1.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-12-05T11_14_41_835Z-debug.log
Expected Behavior
.
Actual Behavior
.
Reproduction Link
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
That’s invalid.
You’re right ! I noticed in the documentation, this part uses the Vuetify from the lib and not the instance from the plugin file ! (which what I already do in the plugin file !)
Weird it works before without throwing error 😅 Thanks for the help !