Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ranupratapsingh opened this issue Jan 31, 2025 · 1 comment
Open

Comments

@ranupratapsingh
Copy link

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.

@ranupratapsingh
Copy link
Author

update on this.

It fails when package-lock.json also exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant