angular / angular-cli

CLI tool for Angular
https://cli.angular.dev
MIT License
26.79k stars 11.98k forks source link

Building angular app inside bun image hangs #28889

Closed lzafreitas closed 1 week ago

lzafreitas commented 1 week ago

Which @angular/* package(s) are the source of the bug?

compiler-cli

Is this a regression?

No

Description

Whenever trying to build an angular app inside the bun docker image the build process hangs and never finishes. The following repo has more information on the Read Me File

https://github.com/lzafreitas/angular-bun

Instructions to reproduce:

Please provide a link to a minimal reproduction of the bug

https://github.com/lzafreitas/angular-bun

Please provide the exception or error you saw

[+] Building 317.3s (8/9)                                                                                                                                                                                                                                                       docker:desktop-linux
 => [client internal] load build definition from Dockerfile                                                                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 160B                                                                                                                                                                                                                                                            0.0s
 => [client internal] load metadata for docker.io/oven/bun:latest                                                                                                                                                                                                                               0.5s
 => [client internal] load .dockerignore                                                                                                                                                                                                                                                        0.0s
 => => transferring context: 89B                                                                                                                                                                                                                                                                0.0s
 => [client 1/5] FROM docker.io/oven/bun:latest@sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e                                                                                                                                                                         0.0s
 => [client internal] load build context                                                                                                                                                                                                                                                        0.0s
 => => transferring context: 38.27kB                                                                                                                                                                                                                                                            0.0s
 => CACHED [client 2/5] WORKDIR /app                                                                                                                                                                                                                                                            0.0s
 => [client 3/5] COPY . /app                                                                                                                                                                                                                                                                    0.9s
 => [client 4/5] RUN bun install                                                                                                                                                                                                                                                                9.4s
 => [client 5/5] RUN bun run build                                                                                                                                                                                                                                                            306.4s 
 => => # $ ng build                                                                                                                                                                                                                                                                                  
 => => # ❯ Building...

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 18.2.12
Node: 20.11.1
Package Manager: bun 1.1.34
OS: darwin arm64

Angular: 18.2.12
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1802.12
@angular-devkit/build-angular   18.2.12
@angular-devkit/core            18.2.12
@angular-devkit/schematics      18.2.12
@schematics/angular             18.2.12
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.14.10

Anything else?

No response

clydin commented 1 week ago

Bun is intended to be a drop-in replacement for Node.js and should provide the same functionality. If the project is working successfully with Node.js and not with Bun, please consider opening an issue with Bun.