webpacker
webpacker copied to clipboard
Space in path causes webpack-dev-server to fail on `.erb` files
Steps to produce:
rails new test\ app --webpack=reactcd test\ appmv app/javascript/packs/hello_react.jsx app/javascript/packs/hello_react.jsx.erbbin/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?
It's a rails-erb-loader issue, already made a PR