Skip to content

Compile error when compiling Foundation SCSS witin Sanic Framework using sanic-sass #438

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

Closed
headkit opened this issue Aug 30, 2023 · 1 comment

Comments

@headkit
Copy link

headkit commented Aug 30, 2023

When compiling Foundation SCSS files with sanic-sass in Sanic Framework, which uses libsass 0.22.0, I get the error

File ".../venv/lib/python3.8/site-packages/sass.py", line 725, in compile
    raise CompileError(v)
sass.CompileError: Error: Invalid CSS after "    @return math": expected expression (e.g. 1px, bold), was ".abs($a);"
        on line 23:17 of templates/vendor/foundation/scss/util/_math.scss
        from line 5:1 of templates/vendor/foundation/scss/util/_util.scss
        from line 25:1 of templates/vendor/foundation/scss/foundation.scss
        from line 1:1 of templates/scss/main.scss
>>     @return math.abs($a);

(Python 3.8.0)

Link to sass.py
Link to _math.scss

Thank you!

@asottile
Copy link
Member

we just wrap libsass so your question is probably better asked there

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