Skip to content

assets:precompile breaks when using text based lock file of bun #212

@ranupratapsingh

Description

@ranupratapsingh

Hi team,
bin/rails assets:precompile breaks on latest bun version which use bun.lock file instead of bun.lockb file.

Steps to reproduce

  1. Create a new rails project with bun as bundler
  2. upgrade bun to a version >= 1.1.40
  3. choose text based lock file(new option)
  4. bin/rails assets:precompile breaks if npm is not installed with following message jsbundling-rails: Command install failed, ensure npm is installed

Root cause
This is caused by tool function of module Jsbundling::Tasks in filejsbundling-rails/blob/main/lib/tasks/jsbundling/build.rake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions