Skip to content

Random error occur after first change with --watch option  #18183

@wupaz

Description

@wupaz

#🐞 Bug report

Command (mark with an x)

  • new
  • [ X] build --watch
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression? yep just before upgrade all work fine.

Description

In one of our part of application after a change and rebuild when we open a specific page we got an error. Sorry I'm not able to be more specific we try to troubleshoot but we didn't find pattern.

🔬 Minimal Reproduction

It look like #16613 but not exactly.

I try to reproduce but like is a complex part of our soft, it's not easy to scope/extract bug to a simple project.

Anything I could supply could help you ?

🔥 Exception or Error

Sometime we got ...


ReferenceError: Cannot access 'ObservationsEditorComponent' before initialization

Sometime it's this ...


Can't bind to 'ngIf' since it isn't a known property of 'div'.

🌍 Your Environment



     _                      _                 ____ _     ___ 
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 10.0.1
Node: 12.18.0
OS: win32 x64

Angular: 10.0.2
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router        
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1000.1
@angular-devkit/build-angular      0.1000.1
@angular-devkit/build-optimizer    0.1000.1
@angular-devkit/build-webpack      0.1000.1
@angular-devkit/core               10.0.1
@angular-devkit/schematics         10.0.1
@angular/cdk                       10.0.1
@angular/cli                       10.0.1
@angular/material                  10.0.1
@angular/material-moment-adapter   10.0.1
@ngtools/webpack                   10.0.1
@schematics/angular                10.0.1
@schematics/update                 0.1000.1
rxjs                               6.5.5
typescript                         3.9.6
webpack                            4.43.0

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