Skip to content

Unexpected warning: Generating index html...2 rules skipped due to selector errorsΒ #20839

@mlc-mlapis

Description

@mlc-mlapis

🐞 Bug report

Command (mark with an x)

  • build

Is this a regression?

Yes, the previous version in which this bug was not present was: 11.2.3

Description

After upgrade to Angular 12 and CLI 12 the following warning appeared:

βœ” Browser application bundle generation complete.
βœ” Copying assets complete.
β ‹ Generating index html...2 rules skipped due to selector errors:
0 @@ .ui-grid -> Unmatched selector: @@ .ui-grid
βœ” Index html generation complete.

πŸ”¬ Minimal Reproduction

It's unclear if it's possible to reproduce this behavior on a simple project.
Maybe related to #20031?

🌍 Your Environment


Angular CLI: 12.0.0
Nx CLI: 12.3.3
Node: 14.17.0
Package Manager: npm 6.14.13
OS: win32 x64

Angular: 12.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... elements, forms, language-service, platform-browser
... platform-browser-dynamic, router

Package                          Version
----------------------------------------------------------
@angular-devkit/architect        0.1200.0
@angular-devkit/architect-cli    0.1200.0
@angular-devkit/build-angular    12.0.0
@angular-devkit/core             12.0.0
@angular-devkit/schematics       12.0.0
@angular-devkit/schematics-cli   12.0.0
@schematics/angular              12.0.0
rxjs                             6.6.7
typescript                       4.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions