-
Notifications
You must be signed in to change notification settings - Fork 755
react_component not rendering on production mode #1076
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
Comments
I was facing the same issue, try to remove {prerender: false} and add ReactRailsUJS.mountComponents() at the end of app/javascript/packs/application.js |
This same thing is happening to me. This little app https://github.com/TylerSustare/dinner/tree/react-rails-does-not-run-in-prod-mode only has one view and this happens with logs
|
Hi, that log doesn't match with the image, I believe that you should review carefully your logs or change the verbosity of this. Regards, |
Changed Let to Var to avoid breaking down in older browsers Will fix reactjs#1076
We have had no updates on this since 2020. Closing the issue. Feel free to reopen it. |
Help us help you! Have you looked for similar issues? Do you have reproduction steps? Contributing Guide
Steps to reproduce
(Guidelines for creating a bug report are available
here)
Expected behavior
Tell us what should happen
Actual behavior
Tell us what happens instead
System configuration
Sprockets or Webpacker version: 4.2.2
React-Rails version: 2.6.1
Rect_UJS version: 2.6.1
Rails version: 4.2
Ruby version: 2.5.3
On development version i can see
react_component("History", {}, {prerender: false})
but on production mode not showing anything without any error.
The text was updated successfully, but these errors were encountered: