Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Command (mark with an
x)Is this a regression?
Yes, the previous version in which this bug was not present was: 9.x
Description
In a specific scenario, changes to component code (template, styles, ts) result in erroneous js and an exception in the browser:
ReferenceError: Cannot access 'AComponent' before initialization. In another scenario, a component stops rendering right after a given change in the template. See video for details.This happens in the following scenario:
Changing anything (e.g. a color in the styles) bricks the live-reloaded app.
Repo: https://github.com/scheja/repro-app (Basic app, generated with
ng new --routing)Start with
ng serve, go tohttp://localhost:4200/lazy, then start editing e.g.src/app/lazy/c/c.component.htmland watch what happens.Quick screen recording: https://youtu.be/d7Ch0pEPtNQ
ReferenceError: Cannot access 'AComponent' before initializationAnything else relevant?
Related to: #18183 (this might be the need: repro steps)