sass-loader >11 compatibility


  • nuxt: 2.14.12
  • node: 15


Update sass-loader to latest release (11.0.0).

It’s happening because it’s compatible only with webpack 5.

What is Expected?

Build project.

What is actually happening?

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
    at Object.loader

2 thoughts on “sass-loader >11 compatibility

  1. Maybe the nuxt documentation page (which says we should install sass-loader by typing npm install sass-loader) could be updated, to aid all the sass-using developers?