Open zhuscat opened 1 year ago
vite 里也有这个问题
In my test, the new addition will be added automatically, delete it is not, delete this can be optimized
Same issue here. Imports are added, but not removed. Is there a way to manually remove imports from / update the components file?
而且在vite里面你重命名组件也只是新增了重命名组件后的文件,不是直接修改旧的或者将旧的删除,还是有什么参数没加吗
I agree, addition of component update the components.d.ts file, but deletion of component doesn't.
The current solution is to let the wrong components into the components.d.ts file, remove manually the components from the file, or delete the components.d.ts and recreate it. Not really ergonomic, and I think it could be easy to detect this change.
Yeah this is also an issue for me, should auto delete the old stuff.
any update on this issue? I currently have to restart my dev server every time I add a new component, really painful! Thanks in advance!
Hello, this is still an issue today. Only workaround is either to build the project or to manually delete the file, which is not ideal.
Describe the bug
components.d.ts
does not update when file added/deleted insrc/components
(using vue cli,pnpm serve
is running).I'm also using Nuxt, I noticed that in Nuxt when file created/deleted in components directory,
components.d.ts
will update. So I'm wondering if this is a BUG.Reproduction
https://github.com/zhuscat/test-unplugin-vue-components
System Info
Used Package Manager
pnpm
Validations