Installation command:
npm install stylus --save
npm install stylus-loader --save
Copy the code
Module build failed: TypeError: this.getOptions is not a function at object. stylusLoader
Cause: The installed version of stylus-Loader is too high
Enter the following command:
NPM uninstall stylus-loader NPM install stylus-loader@3.0.2 --save-devCopy the code
Problem solving: