'installComponents' has already been declared
See original GitHub issueHi, 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:
- Created 5 years ago
- Comments:21 (14 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, this helped. It might be worth adding it to the documentation at https://vuetifyjs.com/en/guides/a-la-carte.
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.