We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var.scss file $--color-success: #4ec89c !default; $color-success: #4ec89c !default;
$--color-success: #4ec89c !default; $color-success: #4ec89c !default;
var.scss file
@use 'var.scss' as *; .el-table .row-success { background: $--color-success; }
compile scss
`const sass = require('sass') const result = sass.compile('./test.scss')`
sass.Exception
throw error; ^
sass.Exception [Error]: Undefined variable. ╷ 4 │ background: $--color-success; │ ^^^^^^^^^^^^^^^^ ╵ test.scss 4:15 root stylesheet at Object.wrapException (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:2161:43) at _EvaluateVisitor1.visitVariableExpression$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:95365:15) at VariableExpression0.accept$1$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:115679:22) at VariableExpression0.accept$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:115682:19) at _EvaluateVisitor1.visitDeclaration$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:94576:22) at Declaration0.accept$1$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:93197:22) at Declaration0.accept$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:93200:19) at _EvaluateVisitor_visitStyleRule__closure1.call$0 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:97526:16) at _EvaluateVisitor1._evaluate0$_withStyleRule$1$2 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:96365:25) at _EvaluateVisitor1._evaluate0$_withStyleRule$2 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:96370:19)
The text was updated successfully, but these errors were encountered:
This is intentional. Members beginning with - are private to the module that defines them.
-
Sorry, something went wrong.
No branches or pull requests
var.scss file
$--color-success: #4ec89c !default; $color-success: #4ec89c !default;
var.scss file
compile scss
sass.Exception
throw error;
^
sass.Exception [Error]: Undefined variable.
╷
4 │ background: $--color-success;
│ ^^^^^^^^^^^^^^^^
╵
test.scss 4:15 root stylesheet
at Object.wrapException (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:2161:43)
at _EvaluateVisitor1.visitVariableExpression$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:95365:15)
at VariableExpression0.accept$1$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:115679:22)
at VariableExpression0.accept$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:115682:19)
at _EvaluateVisitor1.visitDeclaration$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:94576:22)
at Declaration0.accept$1$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:93197:22)
at Declaration0.accept$1 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:93200:19)
at _EvaluateVisitor_visitStyleRule__closure1.call$0 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:97526:16)
at _EvaluateVisitor1._evaluate0$_withStyleRule$1$2 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:96365:25)
at _EvaluateVisitor1._evaluate0$_withStyleRule$2 (D:\work\bosssoft\bs\vue\bs-project\node_modules.pnpm\[email protected]\node_modules\sass\sass.dart.js:96370:19)
The text was updated successfully, but these errors were encountered: