Skip to content

Global scss not working. #2273

@RayLuxembourg

Description

@RayLuxembourg

So I have styles.scss that import list of style from my scss folder.
The Issue happens when I try to use variables or mixins that are defined and Imported inside my styles.scss.
`// GLOBALS

@import 'scss/index';`

I get this error

ERROR in ./src/app/navigation/navigation.component.scss
Module build failed:
@include shadow-1;
^
No mixin named shadow-1

I can solve this only If import the styles.scss directly to the component.scss.
Importing the global scss to all components every time is weird.
also tried to add the same scss to the app[0].styles array
please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions