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

@import and @use fail when using external css #701

Open
danbuntu opened this issue Aug 21, 2024 · 0 comments
Open

@import and @use fail when using external css #701

danbuntu opened this issue Aug 21, 2024 · 0 comments
Labels
discussion needed Soemthing which needs to be discussed before writing the first line of code

Comments

@danbuntu
Copy link

Describe the bug

I have an external SCSS linked set in theme_boost_union | extscssurlpost that is working fine until I add @import or @use to the file. I've tried with relative path, full path and url. I have used this method in a child theme based of boost.

I get the following error:

Debugging: Error while compiling SCSS: parse error: failed at @use "/mnt/web/moodle4test/skillset/scss/moodle4test/staging/test.scss";\r (stdin) on line 38, at column 1 in \n* line 1532 of /lib/outputlib.php: call to debugging()\n* line 1270 of /lib/outputlib.php: call to theme_config->get_css_content_from_scss()\n* line 69 of /theme/styles_debug.php: call to theme_config->get_css_content_debug()\n, referer: https://moodle4test.skillset.co.uk/admin/tool/task/schedule_task.php

I'm keen to use @use if possible as it would let me share partials across a number of different stylesheets/ moodles

To Reproduce
Steps to reproduce the behavior:

  1. Link an external styles sheet
  2. Check it works
  3. Add an @use or @import
  4. Run the purge boost union purge cache task and look the error logs

Expected behavior
Be able to use @use and @import in order to include other style sheets and partials

Additional context
Moodle: 4.1.10
Boost_union: 2023010568

@danbuntu danbuntu added the new Something which has been reported but has not yet beeen triaged by the team label Aug 21, 2024
@HsH-Wolf HsH-Wolf added discussion needed Soemthing which needs to be discussed before writing the first line of code and removed new Something which has been reported but has not yet beeen triaged by the team labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion needed Soemthing which needs to be discussed before writing the first line of code
Projects
Status: No status
Development

No branches or pull requests

2 participants