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.

Update Angular dependencies to latest versions

See original GitHub issue

Update Angular dependencies to use the latest versions.

If I run ncu (from npm-check-updates) on an app created from master, it shows quite a few dependencies that are out of date.

 @angular/common                             9.0.4  β†’    9.1.3
 @angular/compiler                           9.0.4  β†’    9.1.3
 @angular/core                               9.0.4  β†’    9.1.3
 @angular/forms                              9.0.4  β†’    9.1.3
 @angular/localize                           9.0.4  β†’    9.1.3
 @angular/platform-browser                   9.0.4  β†’    9.1.3
 @angular/platform-browser-dynamic           9.0.4  β†’    9.1.3
 @angular/router                             9.0.4  β†’    9.1.3
 @fortawesome/angular-fontawesome            0.6.0  β†’    0.6.1
 @fortawesome/fontawesome-svg-core          1.2.26  β†’   1.2.28
 @fortawesome/free-solid-svg-icons          5.12.0  β†’   5.13.0
 @ng-bootstrap/ng-bootstrap                  6.0.0  β†’    6.1.0
 @ngx-translate/core                        11.0.1  β†’   12.1.2
 ngx-cookie                                  4.0.2  β†’    4.1.2
 ngx-infinite-scroll                         8.0.1  β†’    8.0.2
 rxjs                                        6.5.3  β†’    6.5.5
 swagger-ui-dist                            3.24.3  β†’   3.25.1
 tslib                                      1.10.0  β†’   1.11.1
 zone.js                                    0.10.2  β†’   0.10.3
 @angular/cli                                9.0.4  β†’    9.1.3
 @angular/compiler-cli                       9.0.4  β†’    9.1.3
 @ngtools/webpack                            9.0.4  β†’    9.1.3
 @types/jest                               24.0.23  β†’   25.2.1
 @types/node                              12.12.17  β†’  13.13.4
 @typescript-eslint/eslint-plugin           2.11.0  β†’   2.30.0
 @typescript-eslint/eslint-plugin-tslint    2.11.0  β†’   2.30.0
 @typescript-eslint/parser                  2.11.0  β†’   2.30.0
 autoprefixer                                9.7.3  β†’    9.7.6
 codelyzer                                   5.2.0  β†’    5.2.2
 css-loader                                  3.3.2  β†’    3.5.3
 eslint                                      6.7.2  β†’    6.8.0
 eslint-config-prettier                      6.7.0  β†’   6.11.0
 eslint-loader                               3.0.3  β†’    4.0.2
 file-loader                                 5.0.2  β†’    6.0.0
 html-loader                                 0.5.5  β†’    1.1.0
 html-webpack-plugin                         3.2.0  β†’    4.2.0
 husky                                       3.1.0  β†’    4.2.5
 jest                                       24.9.0  β†’   25.4.0
 jest-date-mock                              1.0.7  β†’    1.0.8
 jest-preset-angular                         8.0.0  β†’    8.1.3
 lint-staged                                 8.2.1  β†’   10.1.7
 merge-jsons-webpack-plugin                 1.0.20  β†’   1.0.21
 mini-css-extract-plugin                     0.8.0  β†’    0.9.0
 moment-locales-webpack-plugin               1.1.2  β†’    1.2.0
 prettier                                   1.19.1  β†’    2.0.5
 rimraf                                      3.0.0  β†’    3.0.2
 sass                                       1.23.7  β†’   1.26.5
 sass-loader                                 8.0.0  β†’    8.0.2
 style-loader                                1.0.1  β†’    1.2.0
 terser-webpack-plugin                       2.3.0  β†’    2.3.6
 ts-loader                                   6.2.1  β†’    7.0.1
 tslint                                      6.0.0  β†’    6.1.2
 typescript                                  3.7.5  β†’    3.8.3
 webpack                                    4.41.2  β†’   4.43.0
 webpack-bundle-analyzer                     3.6.0  β†’    3.7.0
 webpack-cli                                3.3.10  β†’   3.3.11
 webpack-dev-server                          3.9.0  β†’   3.10.3
 workbox-webpack-plugin                      4.3.1  β†’    5.1.3

To test if this is an easy update, I ran the following:

ncu -u # to update all the dependencies
npm install
npm test

All tests pass. Then I started the app. It fails when running from Gradle:

Compiling ng-jhipster : es2015 as esm2015
/Users/mraible/hip-gradle/node_modules/base-href-webpack-plugin/build/index.js:28
        compilation.hooks.htmlWebpackPluginBeforeHtmlProcessing.tapAsync('BaseHrefWebpackPlugin', function (data, callback) {
                                                                ^

TypeError: Cannot read property 'tapAsync' of undefined

This issue seems to be related.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
MathieuAAcommented, Apr 27, 2020
2reactions
SudharakaPcommented, Apr 27, 2020

If no one is already working on this issue, I can give it a try. πŸ˜„

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng update - Angular
Updates your workspace and its dependencies. See https://update.angular.io/. ... Perform a basic update to the current stable release of the core frameworkΒ ...
Read more >
How to upgrade Angular CLI to the latest version
To update Angular CLI to a new version, you must update both the global package and your project's local package.
Read more >
How To Update Angular CLI To Latest Version
To update Angular CLI to latest version Angular, use ng update @angular/core @angular/cli@latest command.
Read more >
How to update Angular to the latest version - tsmean
How to migrate from ngx to ngx+1? Β· Check what is outdated Β· ng update @angular/core Β· Incompatible peer dependencies found: What now?...
Read more >
How to update all the Node dependencies to their latest version
Update all the Node dependencies to their latest version Β· npm install -g npm-check-updates. then run it: Β· ncu -u. this will upgrade...
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