Closed yplxc closed 1 month ago
感谢作者,我是用 pnpm 安装的,但是却一直报
无法找到模块“unplugin-transform-class/vite”的声明文件。“D:/study/uniapp-vite-ts-vue3/node_modules/.pnpm/unplugin-transform-class@0.5.3_rollup@4.19.0/node_modules/unplugin-transform-class/dist/vite.mjs”隐式拥有 "any" 类型。
There are types at 'd:/study/uniapp-vite-ts-vue3/node_modules/unplugin-transform-class/dist/vite.d.ts', but this result could not be resolved when respecting package.json "exports". The 'unplugin-transform-class' library may need to update its package.json or typings
删除node_module 重装吧,这个应该是你的环境问题
删除node_module 重装吧,这个应该是你的环境问题
感谢解答
没有导出类型文件,引入是ts报找不到模块,不知道作者能否导出呢