3

I'm using this tutorial at Material.io and want to use Material.io with gulp-sass.
But when I try to compile it, it shows the error

@material\button\mdc-button.scss
Error: Invalid CSS after "@include mixins": expected 1 selector or at-rule, was ".core-styles;"

The repository is located at GitHUB.

zx485
  • 28,498
  • 28
  • 50
  • 59

1 Answers1

4

It looks like you're trying to use node-sass. MDC Web Components version 5 uses the Sass Modules syntax, which is currently only supported by Dart Sass.

npm install sass

Then in gulpfile.js:

var sass = require('gulp-sass');
sass.compiler = require('sass');
mloar
  • 1,514
  • 11
  • 11