sass-loader >11 compatibility

Versions

  • nuxt: 2.14.12
  • node: 15

Reproduction

Update sass-loader to latest release (11.0.0).

It’s happening because it’s compatible only with webpack 5.
https://github.com/webpack-contrib/sass-loader/releases/tag/v11.0.0

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?