webpacker icon indicating copy to clipboard operation
webpacker copied to clipboard

Space in path causes webpack-dev-server to fail on `.erb` files

Open a3ammar opened this issue 9 years ago • 1 comments

Steps to produce:

  • rails new test\ app --webpack=react
  • cd test\ app
  • mv app/javascript/packs/hello_react.jsx app/javascript/packs/hello_react.jsx.erb
  • bin/webpack-dev-server

Result:

ERROR in ./app/javascript/packs/hello_react.jsx.erb
Module build failed: Error: Command failed: bin/rails runner /Users/a3ammar/Code/test app/node_modules/rails-erb-loader/erb_transformer.rb __RAILS_ERB_LOADER_DELIMETER__ erb
Running via Spring preloader in process 10420
Please specify a valid ruby command or the path of a script to run.
Run 'bin/rails runner -h' for help.

Maybe this is a rails-erb-loader issue?

a3ammar avatar May 14 '17 18:05 a3ammar

It's a rails-erb-loader issue, already made a PR

a3ammar avatar May 14 '17 21:05 a3ammar