custom component import failed
gouwa626 opened this issue · comments
Failed to resolve component: HomeItem If this is a native custom element
version:0.19.3
in vue-cli:
//vue-config.js
When I create a custom component HomeItem in src/components,
Use < HomeItem > < / HomeItem > in page,
HomeItem is not introduced into components.d.ts,
Chorme prompt: [Vue warn]: failed to resolve component: homeitem
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions. isCustomElement.
However, when I rerun npm run serve, it works normally,
I'm normal in other vite projects
I checked the source code. It seems that webpack is not set to monitor file changes? Is there no support?
you can't set unplugin-vue-components include , also unplugin-vue-components don't know som tsx jsx ...