-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
React on Rails Generator installs the older npm package #1336
Comments
@justin808 I used version 16.4 for react and react-dom but received a different error in the console "HelloWorld.jsx:4 Uncaught TypeError: ReactOnRails encountered an error while rendering component: HelloWorld. |
@justin808 I rolled back to react 16.14. It works fine now. |
I updated https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh to React v17 and I didn't see any issues. |
@imgarylai it seems that this PR should provide a fix: #1338. See updated description for a workaround. |
Fixed in 12.0.4. |
If you ran the generator and you have 12.0.3 in the Gemfile and 11.3.1 in the package.json, you hit the issue.
Workaround to fix the incorrect npm version.
Run:
That will replace the 11.3..1 version in the package.json.
Details
This passed:
Sept 30, 2020
Oct 1, 11.3.1 released
That caused the generator to install the older version, since 11.3.1 is later than 12.0.3
So This Failed
Oct 22, 2020
Per this report from @imgarylai
I'm running a new Rails app with ruby 2.7.1 and Rails 6.0.3.4. I followed this tutorial and got the same error message as well.
Gemfile:
#1338 is fixing this issue.
The text was updated successfully, but these errors were encountered: