Description
Command
serve
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Due to an outdated dependency for @angular-devkit/build-anguar, on certain Linux systems, namely those using KDE Plasma 6, the ng serve --open
command does not open a web browser as expected.
Bug was recently fixed in sindresorhus/open#336
however build-angular depends on version 8.4.2 of 'open' rather than any recent version.
It does not seem like there is any rational reason for depending on this old version, since the 'build-angular' dependency 'webpack-dev-server' already depends on a patched version of 'open' (which is at version 10.1.0 at the time of writing), which functions correctly on this platform.
Minimal Reproduction
- Generate a default project for Angular
- Run command
ng serve -o
Expected behavior: The Angular application is opened in the default browser
Actual behavior: The application is not opened and no error is displayed
Exception or Error
No response
Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 18.0.3
Node: 22.2.0
Package Manager: npm 10.8.1
OS: linux x64
Angular: 18.0.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1800.3
@angular-devkit/build-angular 18.0.3
@angular-devkit/core 18.0.3
@angular-devkit/schematics 18.0.3
@angular/cli 18.0.3
@schematics/angular 18.0.3
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.7
Anything else relevant?
Requires a recent Linux distribution using the KDE Plasma 6 desktop environment.