I’m having the same issue in that Registered component names include [ ]
. I keep seeing solutions that involve adding things to webpack.config.js
, but I don’t have that file and I’m afraid to create one, as I’m new to Webpack, and am not sure if it will mess everything up. I followed the tutorials for installing react_on_rails, so I figure if I needed it, it would be there. I did, however, change
(in config/initializers/react_on_rails.rb
)
config.server_bundle_js_file = “hello-world-bundle.js”
to
config.server_bundle_js_file = “order-manager-bundle.js”
where order-manager-bundle.js
is the name of the file that registers my components, and is in the same directory as hello-world-bundle.js.
Should I have webpack.config.js after going through the tutorial steps? Do I have to webpack init
or something?
I should add I’m also getting Uncaught ReferenceError: regeneratorRuntime is not defined