-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting undefined method `react_component' for... #38
Comments
Are you using Active Admin too? |
No, I do not use. But I use another rails engine blazer and health_check. It seems health_check gem use |
@odk211 is |
@philayres When I use this gem, I use |
This should be fixed in the latest (0.3.2) release. |
How to reproduce
Install webpacker and webpacker-react.
https://github.com/rails/webpacker#installation
https://github.com/renchap/webpacker-react#installation
Gemfile
Install Commands
Write some install stuff.
And when open page with
<%= react_component 'SomeComponent' %>
I got this error.
Other info
Add Helper manually in ApplicationController and everything is fine.
I find related issue in webpacker.
rails/webpacker#172
That issue is closed with this PR
https://github.com/rails/webpacker/pull/288/files
I think the following hook is needed, but I'm not sure.
react-rails has same code.
https://github.com/reactjs/react-rails/blob/master/lib/react/rails/railtie.rb#L60...L62
The text was updated successfully, but these errors were encountered: