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

generated css is hardcoded to compile with version 11 #53

Open
l-silvestre opened this issue May 18, 2022 · 5 comments
Open

generated css is hardcoded to compile with version 11 #53

l-silvestre opened this issue May 18, 2022 · 5 comments

Comments

@l-silvestre
Copy link

based on the following snippet:

this.service.compileScssTheme(RenderService.getTemplate({ ...theme, version: 11 })).then(text => {

the generated css will always use scss from angular version 11. When trying to change to version 13 it breaks because of the changes to the usage of scss functions from the "@use '@angular/material' as mat;". Is there any solution for this to be able to generate css with angular 13?

@l-silvestre l-silvestre changed the title Compiled css is hardcoded to compile with version 11 generated css is hardcoded to compile with version 11 May 18, 2022
@arciisine
Copy link
Owner

arciisine commented May 18, 2022 via email

@l-silvestre
Copy link
Author

Thanks for the fast reply.
I know the generate scss does vary based on the selected version. My current issue is that the when trying to compile the angular version 13 sass it is not working. I understand this is a limitation of the compiler as it does not support @use rules right now. The reason im bringing this up is because i need a similiar thing in my current project and i was hoping i might discover something from this.

@arciisine
Copy link
Owner

arciisine commented May 18, 2022 via email

@AFDevMike
Copy link

Am I correct that currently when choosing Version 13+, there is no way to get the CSS? (as opposed to SCSS).

@arciisine
Copy link
Owner

arciisine commented Jun 13, 2023 via email

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

3 participants