基于vben框架的vue前端代码编译时报错

明天的明天 永远的永远 未知的一切 我与你一起承担 ?? / 2024-11-17 / 原文

在Node18.16和16.20版本下使用vben框架时,遇到pnpminstall报错关于eslint-config缺失的问题,

解决方案是通过添加pnpm-workspace.yaml文件并指定内部依赖,确保`@vben/eslint-config`版本配置正确。

问题描述
node18.16 / node16.20 中编译vben框架的vue前端代码,

pnpm install 报错:"@vben/eslint-config@workspace:*"is in the dependencies but no package named "@vben/eslint-config" is present in the workspace

解决方案:

internal 文件夹中配置了@vben/eslint-config的版本。

检查项目根目录,是否存在 internal 文件夹