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

1

14

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
              }
            }
        ]
      }
Sundowner answered 3/10, 2019 at 19:38 Comment(0)
B
58

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

Broadway answered 4/10, 2019 at 5:41 Comment(1)
You might also need to downgrade 'node-sass' to "node-sass": "^4.14.1".Dappled

© 2022 - 2024 — McMap. All rights reserved.