I'm using Sass and want to use @use
keyword instead of @import
. Because, @import
has many buggy problems. Also only dart-sass supports this feature, I changed node-sass into dart-sass. However, problem is occurred.
My original code
@import '@carbon/colors/scss/colors'
dart-sass and @use
applied code
@use '@carbon/colors/scss/colors'
Error: Undefined variable.
How can I solve it?
_colors.scss
(also try without.scss
)