运行pnpm run dev时报错分析:Failed to scan for dependencies from entries: C:/xxx.index.html

Error:Failed to scan for dependencies from entries: C:/xxx.index.html
[ERROR] Missing "./dist/node/types.d-xxx" specifier in "vite" package [;lugin vite:dep-scan] 

在这里插入图片描述
问题分析:可能是在使用npm和pnpm安装依赖、运行时出现交替使用的情况。
解决方法:执行:

npm install

之后就用npm或pnpm中的一种方式执行项目。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐