You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> ant-design-pro@6.0.0 i18n-remove
> pro i18n-remove --locale=zh-CN --write
E:\temp\ant-design-pro-6\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.js:784
throw error;
^
Error: Failed to load config "prettier" to extend from.
Referenced from: BaseConfig
at configInvalidError (E:\temp\ant-design-pro-6\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.js:290:9)
at ConfigArrayFactory._loadExtendedShareableConfig (E:\temp\ant-design-pro-6\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.js:883:23)
at ConfigArrayFactory._loadExtends (E:\temp\ant-design-pro-6\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.js:781:25)
at ConfigArrayFactory._normalizeObjectConfigDataBody (E:\temp\ant-design-pro-6\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.js:720:25)
at _normalizeObjectConfigDataBody.next (<anonymous>)
at ConfigArrayFactory._normalizeObjectConfigData (E:\temp\ant-design-pro-6\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.js:665:20)
at _normalizeObjectConfigData.next (<anonymous>)
at ConfigArrayFactory.create (E:\temp\ant-design-pro-6\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.js:460:16)
at createBaseConfigArray (E:\temp\ant-design-pro-6\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\cascading-config-array-factory.js:98:48)
at new CascadingConfigArrayFactory (E:\temp\ant-design-pro-6\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\cascading-config-array-factory.js:234:30) {
messageTemplate: 'extend-config-missing',
messageData: { configName: 'prettier', importerName: '' }
}
The text was updated successfully, but these errors were encountered:
TAutomatically replying with ChatGPT can be attempted, but it cannot be guaranteed to be completely accurate and may not fully address all issues. Please feel free to reply if you have any further questions or concerns.
此回复基于 ChatGPT 自动生成,可以尝试下方案,官方人员会在一定时间后继续继续处理。
根据该Issue,报错信息是“Failed to load config "prettier" to extend from. ”,可能是因为缺少Prettier的相关依赖。
你可以先通过以下命令安装Prettier的相关依赖:
npm i --save-dev prettier eslint-config-prettier eslint-plugin-prettier
🐛 bug 描述
npm run i18n-remove 报错
📷 复现步骤 | Recurrence steps
🏞 期望结果 | Expected results
执行成功
💻 复现代码 | Recurrence code
无
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: