-
Notifications
You must be signed in to change notification settings - Fork 28
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
npx missing when using --js esbuild
#22
Comments
The same issue is happening with
|
Tested on:
Without
|
@sultanmyrza apparently for some weird reason @excid3 do you have any particular preference how you would like to address this? I did a small experiment and built |
@onshi yes I can confirm --javascript=bun without --css flag works ✅
logs[+] Building 1.9s (7/7) FINISHED docker:desktop-linux => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 307B 0.0s => [internal] load metadata for docker.io/library/ruby:3.3.1 1.8s => [auth] library/ruby:pull token for registry-1.docker.io 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [1/2] FROM docker.io/library/ruby:3.3.1@sha256:797d68561a91415e05fd95178f467d86d77bce2d4f17f32683241a687cbd1705 0.0s => CACHED [2/2] RUN if [ -z "7.2.0.beta3" ] ; then gem install rails ; else gem install rails -v 7.2.0.beta3 ; fi 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:826431269572e80d02f93432a339c5044370632878a2cac89332e181df925c5e 0.0s => => naming to docker.io/library/rails-new-3.3.1-7.2.0.beta3 0.0sWhat's next: However --javascrip esbuild without --css flag still fails ❌
logs[+] Building 0.9s (6/6) FINISHED docker:desktop-linux What's next: Caused by: Tasks: TOP => app:template |
Any updates on this? |
@atstockland PR #23 is ready to go, waiting for a review from Rafael |
If you run
rails-new main --js esbuild
, you'll get the following error becausenpx
is not available.Since Node isn't installed in the Docker container, Rails can't add the esbuild package with
npx
.I'm not sure if this also applies to
--js bun
or not.The text was updated successfully, but these errors were encountered: