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

Failure to compile SASS #1915

Closed
aleksanderkrauze opened this issue Jul 4, 2022 · 3 comments
Closed

Failure to compile SASS #1915

aleksanderkrauze opened this issue Jul 4, 2022 · 3 comments

Comments

@aleksanderkrauze
Copy link

Bug Report

Zola seems to have a problem with compiling SASS. More specifically it can't refer to variable defined in another SASS module.
When I try to do that I get the following error message and building of the site fails:

Error: Error: Invalid CSS after "...r: gruvbox-dark": expected expression (e.g. 1px, bold), was ".$background;"
        on line 3:33 of sass/style.scss
>> $background-colour: gruvbox-dark.$background;

   --------------------------------^

Zola version: 0.15.3

Step to reproduce

Here is my code.

File sass/_gruvbox-dark.scss:

$background: #282828;

File sass/style.scss:

@use 'gruvbox-dark';

$background-colour: gruvbox-dark.$background;

body {
	background-color: $background-colour;
}
@aleksanderkrauze
Copy link
Author

aleksanderkrauze commented Jul 4, 2022

Bonus bug. In the error message phrase Error: occurs two times, which is definitely not intended.

@Keats
Copy link
Collaborator

Keats commented Jul 4, 2022

Zola is using Libsass which does not support that feature.

I'm planning to switch to another Sass implementation (#1535) when they are ready - it might be for 0.17 I'm not sure yet I haven't tried them.

@Keats
Copy link
Collaborator

Keats commented Jul 4, 2022

Closing as it will be handed by the issue mentioned above and no actionable thing to do right now for Zola.

@Keats Keats closed this as completed Jul 4, 2022
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

2 participants