Git Syntax Error: TypeError: this.getOptions is not a function [How to Solve]

The reason is that the less loader version number is too high
you can view the dependent version numbers in package.json

Step: lower the less loader version number

npm install -D less-loader@7.3.0

Or download with yarn

yarn add -D less-loader@7.3.0

Read More: