error element-variables.scss this.getOptions is not a function vue-admin-element 在npm run dev

created at 10-08-2021 views: 10

vue-admin-element reports an error when npm run dev

element-variables.scss  this.getOptions is not a function  
error in ./src/styles/element-variables.scss

Syntax Error: TypeError: this.getOptions is not a function

It was found that when the last error was reported, all dependencies in package.json were updated to the latest version
This time the error was reported for this reason
After removing sass-loader
Just reinstall to version 10

 npm remove sass-loader
 npm i sass-loader@10.1.1
created at:10-08-2021
edited at: 10-08-2021: