You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the build script involves: esbuild app/javascript/*.* --bundle --outdir=app/assets/builds
On Windows, this results in an error: Could not resolve "'app/javascript/*.*'" (glob syntax must be expanded first before passing the paths to esbuild).
From what I've found troubleshooting, it appears that the glob syntax is a shell-specific feature. esbuild does not interpret it on its own. With PowerShell or CMD on Windows not supporting the glob syntax properly, the build commands doesn't work out of the box in these shell environments.
I'm not sure how to go on from here for a general solution. For now, in my project I changed the build script to reference the only .js file I have: esbuild app/javascript/application.js --bundle --outdir=app/assets/builds
The text was updated successfully, but these errors were encountered:
We could actually also detect Windows in the install script and change the default build script proposed. Feel free to have a look at that if you'd like!
Currently, the
build
script involves:esbuild app/javascript/*.* --bundle --outdir=app/assets/builds
On Windows, this results in an error:
Could not resolve "'app/javascript/*.*'" (glob syntax must be expanded first before passing the paths to esbuild)
.From what I've found troubleshooting, it appears that the glob syntax is a shell-specific feature. esbuild does not interpret it on its own. With PowerShell or CMD on Windows not supporting the glob syntax properly, the
build
commands doesn't work out of the box in these shell environments.I'm not sure how to go on from here for a general solution. For now, in my project I changed the
build
script to reference the only.js
file I have:esbuild app/javascript/application.js --bundle --outdir=app/assets/builds
The text was updated successfully, but these errors were encountered: