Create-react-app uses antd-mobile, to compile less error report

create-react-app compiles less with antd-mobile,:

clipboard.png

the contents of Header/index.less mentioned in the error report are as follows, just one sentence:

//index.less
@import "~antd-mobile/dist/antd-mobile.less";

ask the boss for guidance.

Mar.21,2022

create-react-app does not support less files. You need to configure it yourself. Configuration methods can be found on the Internet. There are many documents
link description

.
Menu