Hi everyone !
I'm using vue 3 through webpack (through webpack encore, with symfony, but that shouldn't change anything, in theory) and I can't make the plugin "unplugin-vue-components" work and auto import my components.
I've installed it through npm i unplugin-vue-components -D
I've added the plugin to webpack using
But when I remove, let's say import PulseLoader from "@/Common/PulseLoader.vue";
That is referenced in the generated "components.d.ts" at the line
PulseLoader: typeof import('./assets/vue/components/Common/PulseLoader.vue')['default']
I've got an error in the chrome console :
[Vue warn]: Failed to resolve component: pulse-loader
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
Hi everyone ! I'm using vue 3 through webpack (through webpack encore, with symfony, but that shouldn't change anything, in theory) and I can't make the plugin "unplugin-vue-components" work and auto import my components.
I've installed it through
npm i unplugin-vue-components -D
I've added the plugin to webpack usingIt seems to work since a big components.d.ts is created when I npm run serve
I've added "components.d.ts" to my tsconfig.json include key like this :
But when I remove, let's say
import PulseLoader from "@/Common/PulseLoader.vue";
That is referenced in the generated "components.d.ts" at the linePulseLoader: typeof import('./assets/vue/components/Common/PulseLoader.vue')['default']
I've got an error in the chrome console : [Vue warn]: Failed to resolve component: pulse-loader If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
Any idea ?