I solved few errors and I want here to provide how
esbuild and sass missing
Running bin/rails test:system
The error message contains
sh: esbuild: command not found
bin/rails aborted!
jsbundling-rails: Command build failed, ensure `npm run build` runs without errors
sh: esbuild: command not found
As suggested npm run build
is a good start
and it show this error message
sh: esbuild: command not found
bin/rails aborted!
jsbundling-rails: Command build failed, ensure `npm run build` runs without errors
the solution is install esbuild
, I also suggesto to install sass
if you are not sure
npm install --save-exact --save-dev esbuild sass
Running npm run build:css
I see this error:
sh: sass: command not found
the solution is install sass
, I also suggesto to install esbuild
if you are not sure
npm install --save-exact --save-dev esbuild sass
now npm run build:css
and npm run build
works and I can finally run my tests
# Running:
Capybara starting Puma...
* Version 7.0.4, codename: Romantic Warrior
* Min threads: 0, max threads: 4
* Listening on http://127.0.0.1:63406
....
Finished in 2.813492s, 1.4217 runs/s, 3.9097 assertions/s.
4 runs, 11 assertions, 0 failures, 0 errors, 0 skips
Top comments (0)