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.

'installComponents' has already been declared

See original GitHub issue

Hi, I am running a Vue/typescript/vuetify(a la carte) project. Upgraded to version 1.3.1. Added the vuetify-loader plugin to vue.config.js

“vue”: “^2.5.17” “vuetify-loader”: “^1.0.5” “vue-cli-plugin-vuetify”: “^0.3.0” “vuetify”: “^1.3.1”

Error:

Module parse failed: Identifier 'installComponents' has already been declared (53:7)
You may need an appropriate loader to handle this file type.
|
| /* vuetify-loader */
> import installComponents from "!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js"
| import { VBtn } from 'vuetify/lib'
| import { VCard } from 'vuetify/lib'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (14 by maintainers)

github_iconTop GitHub Comments

14reactions
chriscdncommented, Nov 3, 2018

If you’re using vue-cli-plugin-vuetify you don’t need to modify the webpack config manually. That error means the loader is being run twice.

Thanks, this helped. It might be worth adding it to the documentation at https://vuetifyjs.com/en/guides/a-la-carte.

13reactions
KaelWDcommented, Oct 22, 2018

If you’re using vue-cli-plugin-vuetify you don’t need to modify the webpack config manually. That error means the loader is being run twice.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Identifier 'installComponents' has already been declared #19
Vuetify: 1.3.1 vue: 2.5.17 vue-cli-plugin-vuetify: 0.3.0 vuetif-loader: 1.0.5 Typescript 3.0.1 Hi, I am running a Vue/Typescript/Vuetify(a ...
Read more >
How to resolve the Vuetify error "installComponents has ...
Module parse failed: Identifier 'installComponents' has already been declared (53:7) You may need an appropriate loader to handle this file ...
Read more >
Vue-CLI 3 and Vuetify - Problem with installComponents in ...
Module parse failed: Identifier 'installComponents' has already been declared (35:7). It's worth mentioning that my babel.config.js looks ...
Read more >
Identifier '' has already been declared . : r/learnjavascript
Pushing to an array is not declaring it again, using const is fine. I suspect there is another declaration of tips elsewhere in...
Read more >
vue.js vuetify test-utils warning : Vue warn]: Invalid prop: type ...
... Invalid prop: type check failed yet the code works as I was expecting ... to resolve the Vuetify error "installComponents has already...
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