Skip to content

Infinite Reload-Loop on application startup #2816

@davidbilge

Description

@davidbilge

OS?

Windows 10, Chrome (Version 54.0.2840.71 m)

Versions.

λ ng version
angular-cli: 1.0.0-beta.18
node: 5.7.0
os: win32 x64

Repro steps.

When serving my app with beta.18's new --ssl option, I get an endless reload-loop in Chrome. I.e.: I navigate to https://localhost:4200/, the app loads and initializes completely and then reloads (as if I had hit F5).

Angular CLI's output does change (stays at webpack: bundle is now VALID.). The issue might have been caused by files being touched by another process, triggering a rebuild in angular-cli and thus a reload in the browser. This does not happen.

I can reproduce the problem with the "blank" app as created by ng init, but it does not occur everytime like it does with my (more complex) app:
reload-loop

The problem does not occur in Firefox. I tried this Chrome's incognito mode to avoid plugin-problems, but the problem still occurs.

Also, when I switch away to another tab, the cycle stops. The reload itself still works: when I change a file on the filesystem, angular-cli correctly picks that up, rebuilds, triggers a reload and the browser is not sent into the infinite loop.

It feels like this is a timing issue between the reload-script running in the browser and the application's initialization.

As a sidenote: I tried to disable live-reloading (using --live-reload=false) but that does not seem to work.

The log given by the failure.

No error is logged, neither on the command line nor in the browser's console.

Chrome's devtools' network view looks like this:
reload-loop-2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions