question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Report] npm run build error

See original GitHub issue

Environment

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

https://codepen.io/tbriz-g-l-ov/pen/QWKNENZ

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
KaelWDcommented, Dec 8, 2020

Vue.use(vuetify)

That’s invalid.

0reactions
sarahLardeaucommented, Dec 8, 2020

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 !)

import Vuetify from 'vuetify/lib'

Vue.use(Vuetify)

Weird it works before without throwing error 😅 Thanks for the help !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >
Error messages after "npm start" - Bug Reports - PDF.js Express
Hello, after typing “npm start” I get the following messages. After that the sample files can not be opened. The circle stops at...
Read more >
Errors when running npm run build - node.js - Stack Overflow
Im trying to create my built folder for a react project, but I get this error when I run the command 'npm run...
Read more >
How can i fix npm run build error more efficiently - Support
This forum is the place for such conversations. GH is only for planned work and bug reports. 1 Like. kyunghwan- ...
Read more >
npm run build errors [#3193542] | Drupal.org
Problem /Motivation npm run build displays errors Steps to reproduce 1. npm install 2. npm run build Result:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found