scssphp: Issue while compilling Bootstrap 4.2.1, cannot parse
parse error while parsing bootstrap-4.2.1/scss/mixins/_badge.scss on line 5. This line is a problem:
@at-root a#{&} {
Using version 0.7.7
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 12
- Comments: 34 (2 by maintainers)
I found a workaround. I just changed the
@at-root a#{&}
to&[href]
like in previous bootstrap versions.So _badge look like this:
and in the mixins_badge
Not the best solution but it seems to be working. I tested also all the badges classes, “no errors no problems”.
Happy to hear your opinion.
Got the same issue when compiling Bootstrap 4.2.1 SASS files. Porting
_badges.scss
files from earlier version is not a solution for me.I’ve just tried commit cd6bedb75b1155426cd7f21de6a5314965b1cffc on @kingyond’s branch, and can confirm that a) it Bootstrap 4.2.1 compiles without error and b) badges are rendering as I would expect. Assuming that @kingyond’s changes haven’t broken anything else that I haven’t noticed, it would be great if the change could be merged into this repository.
@kingyond in https://github.com/leafo/scssphp/issues/616#issuecomment-455481858 points to a fork that seems to possibly fix the issue? Why don’t you submit a PR?
@liova99 this is not a correct solution because then you cannot automate the dependency management. In short, you don’t manipulate the 3rd party code, when you develop your own app. It’s just a workaround that can be acceptable in personal (or agency) projects not in commercial, professional ones.
Using older, possibly just incompatible or bugged, versions of a couple of Bootstrap files is clearly not the answer. Please can someone confirm the following:
Thank you.
I’m having the same problems - is this related to #614 ?
This is fixed in last version with #643
@glOOmyART @mind-bending-forks The problem with custom-select is related to Autoprefixer. https://github.com/twbs/bootstrap/issues/27181 - https://getbootstrap.com/docs/4.1/getting-started/browsers-devices/#supported-browsers
@kinsaz you don’t need to completely revert to BS 4.1 😉 it’s just the two files mixins/_badge.scss and _badge.scss which cause the problem, so if you just replace those with the BS 4.1 version you can still use BS 4.2 with badges 😉