Skip to content

Bun CLI Output Problem with Some Bundlers (tsc, rollup, vite) #31407

Closed
@muhammedogz

Description

@muhammedogz

Current Behavior

When I try to run build command nx build test-build-problem for example, there is no output on my terminal.

Just blank

Expected Behavior

It should show me some output

GitHub Repo

https://github.com/muhammedogz/nx-bun-tsc-problem

Steps to Reproduce

  1. Install a fresh nx with bunx create-nx-workspace --pm bun
  2. Select Node app (I think every option would be same)
  3. After initialization create a package with command nx g @nx/js:lib packages/test-build-problem
  4. Select "tsc", "rollup" or "vite" as bundler, select none for following
  5. Run nx build test-build-problem

You can also clone repo since it has only those steps.

Some thoughts

  • If I remove node_modules and bun.lock file and install dependencies with node. Everything works fine
  • If I choose other bundlers (swc, esbuild) it works fine

Nx Report

NX   Report complete - copy this into the issue template

Node           : 21.7.3
OS             : linux-x64
Native Target  : x86_64-linux
bun            : 1.2.0

nx (global)        : 21.1.2
nx                 : 21.1.2
@nx/js             : 21.1.2
@nx/jest           : 21.1.2
@nx/eslint         : 21.1.2
@nx/workspace      : 21.1.2
@nx/devkit         : 21.1.2
@nx/esbuild        : 21.1.2
@nx/eslint-plugin  : 21.1.2
@nx/node           : 21.1.2
@nx/vite           : 21.1.2
@nx/web            : 21.1.2
typescript         : 5.7.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/eslint/plugin
@nx/jest/plugin
---------------------------------------
Cache Usage: 7.28 KB / 25.09 GB

Failure Logs

Package Manager Version

bun --version 1.2.0

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

Operating System: Ubuntu 22.04.5 LTS (Jammy)
Kernel: Linux 5.15.146.1-microsoft-standard-WSL2
Architecture: x86_64
Environment: WSL2 (Windows Subsystem for Linux)

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions