Open jonhue opened 6 years ago
Oh sorry @jonhue, I missed this. ENOENT
means that there is no bin/rails
executable to use. You'll need to work out which directory your rails/ruby executable exists in and configure the loader to use the correct path. I've got a couple of examples there you can use as reference. Let me know if you need more guidance.
I've marked this as "enhancement" because this error could be caught and a more practical instruction (like the comment I gave above) provided instead.
it is also happening with the sample hello_erb.js.erb pack.
What is that?
@rhys-vdw
Modifying runner
& dependenciesRoot
does not appear to solve the problem. I tried each of them with up to four ../
. Relative to which file should these paths be? The configuration? The .js.erb
files?
Here is a sample app that reproduces the problem: https://github.com/jonhue/test_app
runner: 'ruby bin\\rails runner'
fixed the problem for me.
Ah. Windoze! We should be using path.join
for the default path.
Are you sure you need the leading ruby
though? bin/rails
should be an executable.
@rhys-vdw I don't know why, but I need it.
After adding the ERB loader and adding the
.erb
file extension to myapplication
pack, I am getting the following error:it is also happening with the sample
hello_erb.js.erb
pack.