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-devkit/build-angular" Package upgradation from v12.1.2 to 12.2.1 gives an error

See original GitHub issue
  1. Upgraded Angular version from v12.1.2 to v12.2.1.
  2. Updated other packages to latest version as below:

Before update:

 "dependencies": {
"@angular/animations": "^12.1.2",
"@angular/cdk": "^12.1.2",
"@angular/common": "^12.1.2",
"@angular/compiler": "^12.1.2",
"@angular/core": "^12.1.2",
"@angular/forms": "^12.1.2",
"@angular/localize": "^12.1.2",
"@angular/material": "^12.1.2",
"@angular/platform-browser": "^12.1.2",
"@angular/platform-browser-dynamic": "^12.1.2",
"@angular/router": "^12.1.2",
"applicationinsights": "^2.1.4",
"core-js": "^3.15.2",
"html2canvas": "^1.1.4",
"material-icons": "^1.0.0",
"ngx-toastr": "^14.0.0",
"pdfmake": "^0.2.0",
"rxjs": "~7.2.0"

}, β€œdevDependencies”: { β€œ@angular-devkit/build-angular”: β€œ~12.1.2”, β€œ@angular/cli”: β€œ~12.1.2”, β€œ@angular/compiler-cli”: β€œ^12.1.2”, β€œ@angular/language-service”: β€œ^12.1.2”, β€œ@types/jasmine”: β€œ~3.8.1”, β€œ@types/node”: β€œ^16.4.0”, β€œ@typescript-eslint/eslint-plugin”: β€œ^4.28.4”, β€œ@typescript-eslint/parser”: β€œ^4.28.4”, β€œeslint”: β€œ^7.31.0”, β€œts-node”: β€œ~10.1.0” }

After Update:

 "dependencies": {
"@angular/animations": "^12.2.1",
"@angular/cdk": "^12.2.1",
"@angular/common": "^12.2.1",
"@angular/compiler": "^12.2.1",
"@angular/core": "^12.2.1",
"@angular/forms": "^12.2.1",
"@angular/localize": "^12.2.1",
"@angular/material": "^12.2.1",
"@angular/platform-browser": "^12.2.1",
"@angular/platform-browser-dynamic": "^12.2.1",
"@angular/router": "^12.2.1",
"applicationinsights": "^2.1.5",
"applicationinsights-js": "^1.0.20",
"core-js": "^3.16.2",
"html2canvas": "^1.3.2",
"material-icons": "^1.1.1",
"ngx-toastr": "^14.1.0",
"pdfmake": "^0.2.2",
"rxjs": "~7.3.0",
"tslib": "^2.3.1"

}, β€œdevDependencies”: { β€œ@angular-devkit/build-angular”: β€œ~12.2.1”, β€œ@angular/cli”: β€œ~12.2.1”, β€œ@angular/compiler-cli”: β€œ^12.2.1”, β€œ@angular/language-service”: β€œ^12.2.1”, β€œ@types/jasmine”: β€œ~3.8.2”, β€œ@types/node”: β€œ^16.6.1”, β€œ@typescript-eslint/eslint-plugin”: β€œ^4.29.2”, β€œ@typescript-eslint/parser”: β€œ^4.29.2”, β€œeslint”: β€œ^7.32.0”, β€œts-node”: β€œ~10.2.0” }

  1. Ran ng serve command. while running ng serve first or second time. I am able to compile the code but when i am trying to run third time and so on, i am getting below error:

(node:10563) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded at String.match (<anonymous>) at OriginalSource.streamChunks (/home/soni/Documents/IntelliDish/intellidish-frontend/ddsp/node_modules/webpack/node_modules/webpack-sources/lib/OriginalSource.js:64:32) at module.exports (/home/soni/Documents/IntelliDish/intellidish-frontend/ddsp/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17) at ReplaceSource.streamChunks (/home/soni/Documents/IntelliDish/intellidish-frontend/ddsp/node_modules/webpack/node_modules/webpack-sources/lib/ReplaceSource.js:176:44) at module.exports (/home/soni/Documents/IntelliDish/intellidish-frontend/ddsp/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17) at streamAndGetSourceAndMap (/home/soni/Documents/IntelliDish/intellidish-frontend/ddsp/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js:27:53) at CachedSource.streamChunks (/home/soni/Documents/IntelliDish/intellidish-frontend/ddsp/node_modules/webpack/node_modules/webpack-sources/lib/CachedSource.js:208:35) at module.exports (/home/soni/Documents/IntelliDish/intellidish-frontend/ddsp/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17) at ConcatSource.streamChunks (/home/soni/Documents/IntelliDish/intellidish-frontend/ddsp/node_modules/webpack/node_modules/webpack-sources/lib/ConcatSource.js:112:55) at module.exports (/home/soni/Documents/IntelliDish/intellidish-frontend/ddsp/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17) (Use node --trace-warnings ... to show where the warning was created) (node:10563) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:10563) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Then i downgraded the β€œ@angular-devkit/build-angular” version to 12.1.2 & post that it was working fine(no error). Can you please take a look and suggest any solution?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
alan-agius4commented, Aug 20, 2021
0reactions
angular-automatic-lock-bot[bot]commented, Oct 14, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm - @angular-devkit/build-angular dependency issue while ...
I am try to upgrade an Angular project from Angular v11 using ng update and got peer dependency error. I referred How do...
Read more >
@angular-devkit/build-angular | Yarn - Package Manager
@angular-devkit/build-angular. Commit, Type, Description. ccc8e0350, fix, display actionable error when a style does not exist in Karma builder.
Read more >
519 Versions - @angular-devkit/build-angular - npm
Start using @angular-devkit/build-angular in your project by running ... TypeScript icon, indicating that this package has built-in typeΒ ...
Read more >
Fireware v12.2.1 Release Notes - WatchGuard Technologies
Fireware v12.2.1 is a new release for Firebox T Series, ... WatchGuard System Manager 12.2.1 is compatible with Fireboxes with.
Read more >
@angular-devkit/build-angular: Versions | Openbase
Full version history for @angular-devkit/build-angular including change logs. ... add migration to remove package.json in libraries secondary entrypoints.
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