angular-update-guide icon indicating copy to clipboard operation
angular-update-guide copied to clipboard

Migration adds autocomplete feature, but the angular cli doesn’t provide the command

Open mwaibel-go opened this issue 4 years ago • 0 comments

The migration from v13 to v14 added the following lines to my .bashrc:

# Load Angular CLI autocompletion.
source <(ng completion script)

But angular/cli@13 doesn’t feature the complete command. So whenever I open a shell, I’m greeted with

The specified command ("completion") is invalid. For a list of available options,                                                                                                                                                          run "ng help".                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Did you mean "analytics"?

The root problem is that the migration to 14 added @angular/cli@14 locally, but the globally installed version is @13. The migration should not attempt to enable autocompletion if the global ng-cli version is behind the local one.

mwaibel-go avatar Aug 12 '22 07:08 mwaibel-go