运行pnpm run dev时报错分析:Failed to scan for dependencies from entries: C:/xxx.index.html
运行pnpm run dev时报错分析:Failed to scan for dependencies from entries: C:/xxx.index.html
·
运行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中的一种方式执行项目。
更多推荐




所有评论(0)