Closed jackchoumine closed 1 month ago
You need to import the desired Sass variables in the target component using the @use syntax. sass loading-members
component.vue
<style scoped lang="scss">
@use "@/assets/scss-var" as *;
.test-scss-var {
background-color: $bg-color;
}
</style>
./assets/scss-var.scss
$bg-color: red;
Version
Details
rsbuild.config.ts
config:vue3 component style part:
error info:
has imported scss variable in
main.ts
./assets/scss-var.scss
:Reproduce link
无
Reproduce Steps
无