Sass Error: cant find stylesheet to import when @use-ing MDC Webs button using GulpQuestions : Sass Error: cant find stylesheet to import when @use-ing MDC Webs button using Gulp2022-10-10T17:52:03+00:00 2022-10-10T17:52:03+00:00 Show
875 I have these two lines of code in my anycodings_mdc-components main.scss as required by the MDC Web's docs.
Then, I have this Gulp task to convert my anycodings_mdc-components main.scss file to a single build.css file. anycodings_mdc-components My main.scss file compiles just fine when I anycodings_mdc-components remove the two lines above. The error I am getting is the following.
My Gulp task is the following.
I am using gulp-dart-sass to compile the anycodings_mdc-components .scss files. How can I fix the error? Total Answers 1 26 Answers 1 : of Sass Error: cant find stylesheet to import when @use-ing MDC Webs button using GulpI assume you are using package.json, anycodings_gulp material-components-web is added to anycodings_gulp dependencies and dependencies are anycodings_gulp installed. Then it looks like you need anycodings_gulp to add node_modules to load paths for anycodings_gulp Sass to look for imports:
0 2022-10-10T17:52:03+00:00 2022-10-10T17:52:03+00:00Answer Link mRahman Bug reportActual BehaviorBuild error with Yarn 3 & Expected BehaviorNo build errors How Do We Reproduce?
Same code with
System info
|