In my component's scss file, I am trying to use other scss files. I thus wrote the following as the first statements in my component's scss file (before anything else):
@use './_one.scss';
@use './_two.scss';
However, when I run the dev server, I get a very confusing error:
[ ERROR ] sass error: src/components/my_component/my_component.scss:1:86
@use rules must be written before any other rules.
L1: @use '_one.scss';
L2: @use '_two.scss';
Also worth mentioning: _one.scss and _two.scss both use _common.scss and have the following as first statement:
@use './_common.scss'
commenting this out in _one.scss and _two.scss doesn't change anything.
Is this a known incompatibility between sass and stenciljs? I tried to search for answers but to no avail. What am I missing here?
Help appreciated. Thanks!