unplugin-dts icon indicating copy to clipboard operation
unplugin-dts copied to clipboard

Cannot find name'DefineComponent'

Open yinkeli opened this issue 1 year ago • 0 comments

我直接使用dts(),没有加配置,执行完脚本的时候报了很多错误,node_modules里面的vue下的types、packages和src目录都被删除了,反而多了一个server-renderer目录,这是咋回事呀?我使用的github那里的插件,我希望得到import('vue').DefineComponent,但是结果DefineComponent在.d.ts文件里面找不到引入,err:Cannot find name 'DefineComponent'

I directly use dts (), without configuration, when the script is executed, a lot of errors are reported, the types, packages and src directories under vue in node_modules are deleted, but there is a server-renderer directory, What's going on? I use the plugin from github there. I want to get import ('vue').DefineComponent, but the result DefineComponent in the .d.ts file can not find the import, err: Cannot find name'DefineComponent'

yinkeli avatar May 23 '24 03:05 yinkeli