Hi,
Our app is build with multiple themings sheets and Angular 12. A main theming file imports some and these imports some other theming files too (simple parent-children logic). I tried to use new scss-bundle rules (@use vs @import) but this scss-bundle error always occured when i tried to compile all of it :
@use rules must be written before any other rules
Hi, Our app is build with multiple themings sheets and Angular 12. A main theming file imports some and these imports some other theming files too (simple parent-children logic). I tried to use new scss-bundle rules (@use vs @import) but this scss-bundle error always occured when i tried to compile all of it :
@use rules must be written before any other rules
My main theming file is something like this :
"theming" is built like this :
and "common-theming" looks like this :
I need the @use rule in each file to set namespace ("mat" in my case) and to allow the use of theming functions. What do I need to make this right ?
Here Angular12 doc for theming (https://material.angular.io/guide/theming)
Package version: v1.35.1 (sass) Node version: v14.17.1 OS: Windows