You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code which adds the import statements, should analyze the file and add import clauses under @use statements instead of just adding them to beginning of the each file.
As a workaround I removed the use of injectGlobalPaths and now import global scss files (such as mixins.scss) directly inside of component styles (such as styles.scss).
Our workaround was to create a workaround-scss file that performs the calculations, assigning them to variables and importing that file in the mixins.scss. It's a bit of a hack, we only had seven instances where that calculation was needed (as opposed to many more .scss files)
Lets say I have the following setup:
This will end up with error:
@use rules must be written before any other rules.
https://sass-lang.com/documentation/at-rules/use
The code which adds the import statements, should analyze the file and add import clauses under
@use
statements instead of just adding them to beginning of the each file.stencil-sass/src/util.ts
Line 55 in 7871073
The text was updated successfully, but these errors were encountered: