Closed ghost closed 5 years ago
What compiler are you using?
I am having a similar error. Error: Undefined variable. font-size: $font-size-sm; ^^^^^^^^^^^^^ source_bootswatch.scss 13:14 root stylesheet
I am using dart2js 2.1.0 .
I am using the command "sass source/_bootswatch.scss:default-bootstrap.css --load-path="source/_variables.scss".
The issue was import statement order.
I am having the same issue with 4.2.1
@henhen724 what did you change about the import statement order to get it to work?
I'm trying to run this against a Vue cli-generated project with sass-loader. Here is my code:
import "bootswatch/dist/yeti/_variables.scss";
import "bootstrap/scss/bootstrap.scss";
import "bootswatch/dist/yeti/_bootswatch.scss";
I get this error:
ERROR in ./node_modules/css-loader!./node_modules/postcss-loader/src??ref--3-2!./node_modules/sass-loader/lib/loader.js!./node_modules/bootswatch/dist/yeti/_bootswatch.scss
Module build failed:
font-size: $font-size-sm;
You're issue is different you should write:
import "bootswatch/dist/yeti/variables.scss";
import "bootstrap/scss/bootstrap.scss";
import "bootswatch/dist/yeti/bootswatch.scss";
Underscores just let sass know that the file is partial you don't include them in imports.
I actually believe this is the same issue that the original post is having. This issue can be closed.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I copied the
_variables.scss
and_bootswatch.scss
to my project and included it like this:I get this error:
Using the npm version like this works:
I really don't know why this happens oO