Skip to content

@nx/vite fails when using generatePackageJson option with bun #30568

@droutin

Description

@droutin

Current Behavior

Can't use generatePackageJson when building app with Bun

Expected Behavior

Should create packageJson with dependencies

GitHub Repo

No response

Steps to Reproduce

  1. Install bun
  2. Install packages with bun
  3. Build app with Vite and generatePackageJson

Nx Report

Node           : 22.14.0
OS             : win32-x64
Native Target  : x86_64-windows
npm            : 10.9.2

nx (global)            : 20.7.0
nx                     : 20.7.0
@nx/js                 : 20.7.0
@nx/jest               : 20.7.0
@nx/eslint             : 20.7.0
@nx/workspace          : 20.7.0
@nx/devkit             : 20.7.0
@nx/eslint-plugin      : 20.7.0
@nx/module-federation  : 20.7.0
@nx/nest               : 20.7.0
@nx/node               : 20.7.0
@nx/react              : 20.7.0
@nx/react-native       : 20.7.0
@nx/vite               : 20.7.0
@nx/web                : 20.7.0
typescript             : 5.7.3
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/react-native/plugin
@nx/vite/plugin
---------------------------------------
Cache Usage: 0.00 B / 186.23 GB

Failure Logs

NX   Unable to create bun lock files. Run bun install it's just as quick
 NX   The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

Package Manager Version

bun@1.2.8

Operating System

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

Additional Information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions