Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New angular version not working any more #82

Open
h11a opened this issue Sep 9, 2022 · 0 comments
Open

New angular version not working any more #82

h11a opened this issue Sep 9, 2022 · 0 comments

Comments

@h11a
Copy link

h11a commented Sep 9, 2022

After updating from angular 13 to angular 14 we are having trouble with using this with angular material.

One of the material files had this in version 13

@use '../../../cdk/a11y';
@use './list-common';
@use './layout-common';

Which has since been replaced with

@use '@angular/cdk';

@use './list-common';
@use './layout-common';

It always fails on the new cdk import.
I have tried to add that into the include files but nothing seems to work. Below is our options

Original version working with angular 13

var options = {
    inputFiles: ['src/app/css/export_variables.scss'],
    includePaths: ['src/app/css/', 'node_modules/@angular/material', ]
};

What I have tried

var options = {
    inputFiles: ['src/app/css/export_variables.scss'],
    includePaths: ['node_modules/@angular/cdk/', 'src/app/css/', 'node_modules/@angular/material', ]
};

Do you have any idea why the cdk path does not work?

I have tried manually changing it to ../../../cdk in the scss file, which does fix it but obviously cant be used as a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant