AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

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

Open QuentinCurtet opened this issue 3 years ago • 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.

QuentinCurtet avatar Jul 14 '22 08:07 QuentinCurtet

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

RomainOdeval avatar Aug 05 '22 08:08 RomainOdeval

still not fixed

masterkain avatar Aug 19 '22 09:08 masterkain

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 ?

canariamine avatar Sep 21 '22 09:09 canariamine

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 avatar Nov 08 '22 13:11 RomainOdeval

@RomainOdeval i love you ❤️ This solution is wonderful

Joniras avatar Nov 14 '22 07:11 Joniras

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.

NVV-WebManager avatar Nov 08 '23 20:11 NVV-WebManager