学习进度记录:
12.7:
教程链接:智能 BI 项目教程(一) (yuque.com)
前端:
Ant Design Pro:开始使用 - Ant Design Pro
然后安装依赖 yarn install
去除不需要的:
移除国际化
【报错】
Error: Failed to load config "prettier" to extend from.
Referenced from: BaseConfigat configInvalidError (D:\myproject\BiProject\BiProject\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.js:290:9) at ConfigArrayFactory._loadExtendedShareableConfig (D:\myproject\BiProject\BiProject\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\confi
g-array-factory.js:883:23)at ConfigArrayFactory._loadExtends (D:\myproject\BiProject\BiProject\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.
js:781:25)at ConfigArrayFactory._normalizeObjectConfigDataBody (D:\myproject\BiProject\BiProject\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\con
fig-array-factory.js:720:25)at _normalizeObjectConfigDataBody.next (<anonymous>)at ConfigArrayFactory._normalizeObjectConfigData (D:\myproject\BiProject\BiProject\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-
array-factory.js:665:20)at _normalizeObjectConfigData.next (<anonymous>)at ConfigArrayFactory.create (D:\myproject\BiProject\BiProject\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\config-array-factory.js:460
:16)at createBaseConfigArray (D:\myproject\BiProject\BiProject\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\cascading-config-array-factory.
js:98:48)at new CascadingConfigArrayFactory (D:\myproject\BiProject\BiProject\node_modules\@ant-design\pro-cli\node_modules\@eslint\eslintrc\lib\cascading-config-arra
y-factory.js:234:30) {messageTemplate: 'extend-config-missing',messageData: { configName: 'prettier', importerName: '' }
}
【解决】
终端执行
yarn add eslint-config-prettier --dev yarn add eslint-plugin-unicorn --dev
注释掉这行代码:可以搜