-
Notifications
You must be signed in to change notification settings - Fork 70
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
Compilation SCSS Error upon generating a new theme with "generator-liferay-theme" #1164
Comments
It may be related to this, #1160 Can you confirm if forcing the sass version resolution to 1.64.1 and see if that works? |
Thank you for the suggestion @bryceosterhaus . |
cc @pat270 do these errors make sense to you at all? I haven't gotten a change to look yet, but figured you may have a better idea |
@bryceosterhaus yes, this was an old pattern we used to unset variables in libSass. It turns out it was a bug and not a feature. It was "fixed" in Sass. Any place with |
@rbatllet @bryceosterhaus The compat layer on this repo doesn't have instances of this pattern. We have it in our older |
Hey @pat270, just wanted to drop a quick note of appreciation. Your tip on disabling Dart Sass totally did the trick for my theme issues. It's awesome working with open-source tools and having a community like this to lean on. Kudos and thanks for the quick fix! |
@rbatllet No problem! Thanks for reporting this, I'll add it to the read me file. I'm sure this will come up again. |
@bryceosterhaus is there a way we can disable Dart Sass if generating a 7.2 or 7.3 theme? |
Issue type (mark with
x
)Version (mark with
x
)Description
I used the "generator-liferay-theme" component to generate a new theme for Liferay. After the generation, without making any changes to the generated files, I tried to execute
npm run build
and encountered a SCSS compilation error.Desired behavior:
Upon generating a new theme with "generator-liferay-theme", the resulting code should compile without any errors when running
npm run build
. Specifically, SCSS compilation should complete successfully, allowing developers to start their theme customization with a clean, error-free base.Current behavior:
Repro instructions (if applicable):
Other information (environment, versions etc):
generator-liferay-theme: 10.2.1
node: 20.5.1
Operating system: MacOS 11.7.9
The text was updated successfully, but these errors were encountered: