Open gradyll opened 7 months ago
Have you set dts=true
?
Have you set
dts=true
?
设置了还是报一样的错误 这是我vite.config.ts的配置:
这是我tscofign.app.json的配置:
@upleave 可以提供一个最小的复现demo吗?
@upleave 可以提供一个最小的复现demo吗?
svg-component.d.ts 和 svg-component-global.d.ts 文件生成出来后就没问题了,可能是我添加dts:true
之后要等一阵才能生成完。
谢谢解答!
I built vue2 in webpack5 using typescript patterns, and when introducing ~virtual/svg-component in main.ts, Cannot find module '~virtual/svg-component' or its corresponding type declarations is displayed. You should add a type declaration to the webpack.