-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Blueprint's CSS not compatible with Parcel 2.4.X CSS transformer #5256
Comments
@enriquecaballero which version of blueprint core? |
@adidahiya |
Ok, I can see the parts of the code which would produce this weird selector:
My first guess was that this code compiles differently with node-sass vs dart-sass (we migrated to the latter in v4.1), but that is not the case... the bad selectors still exist in v4.0.0: line 4417 of https://unpkg.com/browse/@blueprintjs/[email protected]/lib/css/blueprint.css IMO dart-sass should not allow us to produce this invalid CSS, so it's probably worth filing a bug there, but we should be able to work around this in Blueprint by refactoring our Sass mixins. I'll look into a fix for v4.1.x. |
@adidahiya 100% agreed dart-sass should have failed the compilation if the CSS was in fact invalid. |
@adidahiya Unfortunately, this is still failing:
|
I was able to patch the CSS file. This is the patch file produced by Yarn:
|
Unsure if you were aware, but the latest
blueprint.css
is not compatible with Parcel 2.4.X's CSS transformer:There is a GitHub issue on the Parcel side but they seem to point the finger at Blueprint. See parcel-bundler/lightningcss#149 (comment).
The text was updated successfully, but these errors were encountered: