ng build hangs without error or warning.
mvdluit opened this issue · 6 comments
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
No response
Description
Raising this issue on behalf of @TheBarenziah (question was originally asked on discord: https://discord.com/channels/748677963142135818/1234862759502549163)
Running ng build
hangs without showing any errors or warnings. Running it with the --verbose
flag results in the following output before it hangs: https://pastebin.com/4DTaaNXL (dist
folder is not created even though verbose output shows (some of) the chunks).
No errors are shown in the codebase and ng serve
and ng serve --configuration production
work as expected.
Steps taken to debug the issue:
- ran command on different machines.
- removed
package-lock.json
before install to ensure correct package versions were installed. - tried with different version of node (latest version of node 18)
- tried with downgrading Angular packages (fixed on 17.1.0)
- removed any code referencing
firebase/database
(firebase database provider, database.service.ts and code referencing the service in register.component.ts) as that was added last.ng build
worked before that, but was couple weeks ago since last tried.
The absence of errors/warnings makes this hard to debug and I unfortunately do not have the ability to step through the different build steps to isolate the issue.
Minimal Reproduction
Repository: https://github.com/TheBarenziah/neuro-recovery-app (firebase api key will be replaced once issue is resolved, no data in database)
- clone
npm install
ng build
orng build --verbose
Exception or Error
No response
Your Environment
Angular CLI: 17.3.6
Node: 20.11.1
Package Manager: npm 10.2.4
OS: linux x64
Angular: 17.3.6
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... platform-server, router, ssr
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1703.6
@angular-devkit/build-angular 17.3.6
@angular-devkit/core 17.3.6
@angular-devkit/schematics 17.3.6
@angular/fire 17.0.1
@schematics/angular 17.3.6
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.4
Anything else relevant?
No response