angular / angular-cli

CLI tool for Angular
https://cli.angular.dev
MIT License
26.78k stars 11.98k forks source link

--open argument does not function on ng serve due to outdated 'open' package dependency for 'build-angular' on KDE Plasma 6 #27825

Closed gajbooks closed 5 months ago

gajbooks commented 5 months ago

Command

serve

Is this a regression?

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 https://github.com/sindresorhus/open/issues/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

  1. Generate a default project for Angular
  2. 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.

angular-automatic-lock-bot[bot] commented 4 months ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.