Module Build Failed. TypeError: this.getResolve is not a function

Israa Sulaiman picture Israa Sulaiman · Oct 3, 2019 · Viewed 11.6k times · Source

I am getting this error when compiling sass.

webpack: 3.12.0, sass-loader: 8.0.0.

Also, I use angular2.

     {
        test: /\.(scss|sass)$/,
        use: [
          "to-string-loader",
          {
            loader: "css-loader",
            options: {
              sourceMap: false
            }
          },
          {
            loader: "sass-loader",
              options: {
                  sourceMap: false
              }
            }
        ]
      }

Answer

user12162740 picture user12162740 · Oct 4, 2019

Probably a SASS/Webpack compatibility issue. Downgrading to "sass-loader": "^7.3.1", solved it for me.