使用i18n-remove删除国际化报错
添加两个包yarn add eslint-config-prettier -d ,yarn add eslint-plugin-unicorn -d
在node_modules/@umijs/lint/dist/config/eslint/index.js目录下注释以下代码
// es2022: true
在yarn情况下已经解决问题,会出现把默认的菜单配置移除掉导致移除侧边栏,这时候需要把route配置中的name添加上。
如果是使用pnpm安装包,还会继续出现错误。不深究原因,我是直接切换yarn,有比较好的解决方案,可以提出来
简单记录,勿喷