-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Command
build
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
20.3.10
Description
After updating to Angular 21.0.5 and Angular CLI 21.0.3, jenkins build with the following error:
[2025-12-17T08:19:25.118Z] An unhandled exception occurred: Cannot find module 'lmdb'
[2025-12-17T08:19:25.118Z] Require stack:
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/build/src/tools/esbuild/lmdb-cache-store.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/build/src/private.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular-devkit/build-angular/src/builders/browser/index.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular-devkit/architect/node/index.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/command-builder/architect-base-command-module.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/command-builder/architect-command-module.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/commands/build/cli.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/commands/command-config.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/command-builder/command-runner.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/lib/cli/index.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/lib/init.js
I can build in my local machine without issues. First time this happen during an Angular update.
Minimal Reproduction
We have a custom script to trigger the build
"build-jenkins-pr-only": "node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --configuration production --deploy-url /mco/js/angular4/",
Could this be related to #32127 ?
Exception or Error
[2025-12-17T08:19:25.118Z] An unhandled exception occurred: Cannot find module 'lmdb'
[2025-12-17T08:19:25.118Z] Require stack:
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/build/src/tools/esbuild/lmdb-cache-store.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/build/src/private.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular-devkit/build-angular/src/builders/browser/index.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular-devkit/architect/node/index.js
[2025-12-17T08:19:25.118Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/command-builder/architect-base-command-module.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/command-builder/architect-command-module.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/commands/build/cli.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/commands/command-config.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/src/command-builder/command-runner.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/lib/cli/index.js
[2025-12-17T08:19:25.119Z] - /home/jenkins/workspace/mco_PR-40038/front-end/node_modules/@angular/cli/lib/init.js
Your Environment
Angular CLI : 21.0.3
Angular : 21.0.5
Node.js : 24.3.0
Package Manager : npm 11.4.2
Operating System : darwin arm64
┌───────────────────────────────────┬───────────────────┬───────────────────┐
│ Package │ Installed Version │ Requested Version │
├───────────────────────────────────┼───────────────────┼───────────────────┤
│ @angular-devkit/build-angular │ 21.0.3 │ ^21.0.3 │
│ @angular/animations │ 21.0.5 │ ^21.0.5 │
│ @angular/cdk │ 21.0.3 │ ^21.0.3 │
│ @angular/cli │ 21.0.3 │ ^21.0.3 │
│ @angular/common │ 21.0.5 │ ^21.0.5 │
│ @angular/compiler │ 21.0.5 │ ^21.0.5 │
│ @angular/compiler-cli │ 21.0.5 │ ^21.0.5 │
│ @angular/core │ 21.0.5 │ ^21.0.5 │
│ @angular/forms │ 21.0.5 │ ^21.0.5 │
│ @angular/platform-browser │ 21.0.5 │ ^21.0.5 │
│ @angular/platform-browser-dynamic │ 21.0.5 │ ^21.0.5 │
│ @angular/router │ 21.0.5 │ ^21.0.5 │
│ rxjs │ 7.8.2 │ ~7.8.0 │
│ typescript │ 5.9.3 │ ~5.9.2 │
│ zone.js │ 0.15.1 │ ~0.15.0 │
└───────────────────────────────────┴───────────────────┴───────────────────┘
Anything else relevant?
No response