Open aljazdolenc opened 2 months ago
It did not log error, when I used @use
instead of the @import
@use '../variables' as *;
:host {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
background: $primary;
height: 100vh;
width: 100vw;
}
Please provide the environment you discovered this bug in.
https://stackblitz.com/edit/stackblitz-starters-tf1kme?file=analog-project%2Fsrc%2Fapp%2Fapp.component.ts
Which area/package is the issue in?
create-analog
Description
Problem:
While running development server with
scss
inline styles. When I imported variable from _variables.scss file and use it, I noticed this error being logged, but styles did work on the server page.Expectation:
Not to see any errors if file exists and served page correctly applies styles.
Steps to reproduce:
pnpm create analog
inlineStylesExtension: 'scss'
styles.css
tostyles.scss
styles.css
tostyles.scss
_variables.scss
file with single sass variableapp.component.ts
and use variableng serve
Please provide the exception or error you saw
Other information
No response
I would be willing to submit a PR to fix this issue