critters icon indicating copy to clipboard operation
critters copied to clipboard

Warning when using :host-context that is subselects_1.subselects[name] is not a function

Open starklord07 opened this issue 2 years ago • 6 comments

I have updated my angular project to v13 and after getting this warning with :host-context selector that is subselects_1.subselects[name] is not a function.

I am using [email protected] as part of @angular-devkit/[email protected]. I guess the issue is related to #90.

I am getting the following warning.

Generating index html...5 rules skipped due to selector errors: :host-context(.theme-themelight) .button.btn-primary -> subselects_1.subselects[name] is not a function ...

starklord07 avatar May 10 '22 05:05 starklord07

I have the same issue @angular-devkit/[email protected] / [email protected] / [email protected] effects with multiple working: subselects_1.subselects[name] is not a function

pszpor avatar May 25 '22 07:05 pszpor

same issue with "@angular-devkit/build-angular": "13.3.7", "critters": "0.0.16", is there a workaround how to fix it?

Dante1349 avatar Jun 02 '22 11:06 Dante1349

Shouldn't be a workaround needed, since this is only a warning. It just means the generated critical CSS will not include the affected selector.

developit avatar Jun 02 '22 23:06 developit

But is there any way to fix this warning ? I can recall, there was a similar issue #90 which was fixed.

starklord07 avatar Jun 08 '22 06:06 starklord07

This is very likely to have the same root cause as #103, and IMHO should be close as duplicate.

PowerKiKi avatar Sep 20 '22 14:09 PowerKiKi

Solved by https://github.com/GoogleChromeLabs/critters/pull/124, which was released as 0.0.17.

@starklord07 , could you please close this issue ?

PowerKiKi avatar May 30 '23 11:05 PowerKiKi