question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@angular/google-maps version isn't updated when running ng update

See original GitHub issue

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

No

Description

A clear and concise description of the problem...

When running ng update on an Angular project that has the dependency @angular/google-maps present, ng will not prompt, or update the google maps dependency.

ng version also doesn’t seem to list @angular/google-maps in the list of Angular dependencies, but does show it in the list of packages.

πŸ”¬ Minimal Reproduction

1- Create a new Angular project with an outdated dependency version, and add an outdated version of @angular/google-maps to the project. 1- Or add an outdated version of @angular/google-maps to an existing project.

2- Run ng update and validate that there is no prompt indicating that @angular/google-maps has an available updated version.

πŸ”₯ Exception or Error

No exception is thrown

🌍 Your Environment




Angular CLI: 12.0.0
Node: 15.10.0
Package Manager: npm 7.12.1
OS: win32 x64

Angular: 12.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, localize, material, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1102.12
@angular-devkit/build-angular   12.0.0
@angular-devkit/core            11.2.12
@angular-devkit/schematics      12.0.0
@angular/google-maps            11.2.12
@schematics/angular             12.0.0
rxjs                            7.0.1
typescript                      4.2.4

Anything else relevant?

I’ve noted this issue since a few versions back. Unsure when it started, or if it is intended.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
alan-agius4commented, May 13, 2021

Looks like it is an angular/components issue, as this package is not listed in the ng-update packageGroup.

https://github.com/angular/components/blob/6626fee8197c9195373ecd4a35d1165064432343/src/material/package.json#L34-L38

1reaction
alan-agius4commented, May 13, 2021

@Heatmanofurioso It seems like this would fit more into a separate issue. I think one thing to acknowledge though is that ng update seems to only update packages which provide migrations. correct me if I’m wrong @alan-agius4.

Correct.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to update Angular to specific version (required by Google ...
It looks like CMD windows console). -- Navigate until the folder where you have angular installed (NodeJS) (Normally in ProgramFiles). -- PasteΒ ...
Read more >
Guide to update your Angular application v7.2 -> v12.0 for ...
Update to the new version ... Review these changes and perform the actions to update your application. Update to version 8 of the...
Read more >
How to Update Angular Projects to the Latest Version - SitePoint
// import operators from rxjs/operators import { map } from 'rxjs/operators'; // ... @Component({ selector: 'app-todos', templateUrl:Β ...
Read more >
Update to Angular Version 8 now! | juri.dev
That said, it's extremely important to keep your app up-to-date with the latest Angular version. Upgrading step by step will be much easier...
Read more >
@angular/google-maps - npm
Angular Google Maps. Latest version: 15.0.3, last published: 11 days ago. Start using @angular/google-maps in your project by running `npm iΒ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found