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
              }
            }
        ]
      }

1 Answer 1

59

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

Sign up to request clarification or add additional context in comments.

1 Comment

You might also need to downgrade 'node-sass' to "node-sass": "^4.14.1".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.