Setup rails 7 and React as one App using jsbundling-rails on windows

496 Views Asked by At

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?

0

There are 0 best solutions below