0

Following there github page

All have done earlier

  1. rails new hello-world -j esbuild
  2. bundle add jsbundling-rails
  3. When I run rails javascript:install:esbuild

I got the following errors below

enter image description here

Under their FAQ:

Is there a work-around for lack of glob syntax on Windows?

The default build script for esbuild relies on the app/javascript/. glob pattern to compile multiple entry points automatically. This glob pattern is not available by default on Windows, so you need to change the build script in package.json to manually list the entrypoints you wish to compile.

below is my package.json

enter image description here

How would I modify it to work on Windows OS?

Ismail
  • 11
  • 1
  • 4
  • What command lead you to the above error ? Because with `rails new hello-world -j esbuild` your app should be esbuild ready. (with jsbundling-rails). Also why Webpack, do you plan to use two bundlers alltogether ? – Maxence Aug 16 '22 at 23:22
  • rails javascript:install:esbuild – Ismail Aug 17 '22 at 14:36
  • check out my recent question: https://stackoverflow.com/questions/76237989/bundling-directory-structures-in-esbuild-for-a-rails-7-application I believe this solves the problem. And your question is not easily found as the title doesn't make sense. – Thomas Jun 02 '23 at 01:12

0 Answers0