Skip to content

ng serve live-reload fails when withExperimentalPlatformNavigation is enabled #66746

@AssafGolani

Description

@AssafGolani

Which @angular/* package(s) are the source of the bug?

router

Is this a regression?

No

Description

When withExperimentalPlatformNavigation() is enabled in app.config.ts, the ng serve --live-reload=true functionality breaks.

Making changes to source files triggers a rebuild in the terminal, but the browser does not refresh. Removing withExperimentalPlatformNavigation() restores expected live-reload behavior.

Please provide a link to a minimal reproduction of the bug

https://github.com/AssafGolani/live-reload-demo-reproduction

Please provide the exception or error you saw

## Expected Behavior

The browser should automatically reload when files are changed, regardless of whether the native navigation integration is enabled.

## Actual Behavior

The browser fails to reload. It appears the connection to the live-reload socket is maintained, but the trigger to refresh the page is either blocked or ignored by the Navigation API integration.

## Exception or Error

No error is printed in the browser console, but the refresh simply does not occur.

Please provide the environment you discovered this bug in (run ng version)

Angular CLI       : 21.1.1
Node.js           : 20.19.0
Package Manager   : npm 10.4.0
Operating System  : win32 x64

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions