ColorlibHQ/AdminLTE

[BUG] Top-level selectors may not contain the parent selector "&"

Opened this issue · 6 comments

Describe the bug
I know that is a duplicate from #4255 but the problem is still here and not solved
Error on local NPM build (8.14.0 and node 16.16) with v3.2.0
image

**Environment:
AdminLTE Version: v3.2.0
Operating System: Debian11
Sass version: 1.53.0

**Additional informations
I've fix this error by replacing, in build\scss\mixins_backgrounds.scss line 7:
&.bg-#{$name} {
by
.bg-#{$name} {

There may be other similar occurrences but I am not including all files in my project.

Same issue.
It is a "no-go" to migrate our projects into 3.2.0+ since its release.

still not fixed

21 Sept, Still not fixed apparently :(
I'm not gonna fix the pb modifing the specific file in node_modules... Do you have any solutions ?

21 Sept, Still not fixed apparently :( I'm not gonna fix the pb modifing the specific file in node_modules... Do you have any solutions ?

Yes, we put on our project this wonderful tool to patch another package (a very small one) : https://www.npmjs.com/package/patch-package
And i think we will use it to use AdminLTE 3.2 ...

@RomainOdeval i love you ❤️
This solution is wonderful

For anyone here looking for a similar solution to that referenced by @RomainOdeval when addressing a composer dependency, you can follow this tutorial to create a patch file with the fix.