Generally, it is caused by version incompatibility, just lower the version. The specific steps are as follows:
From the figure, it can be seen that the error is caused by lessLoader.
I am using yarn.
yarn add less-loader@5.0.0
npm is as follows:
npm uninstall less-loader
npm install less-loader@5.0.0
(If it is caused by sassLoader, you can change the above code less
to sass
)