Skip to content

Commit 045668e

Browse files
justin808claude
andcommitted
Fix React on Rails compatibility by using stable 14.2.1 version
- Change from 16.0.1.rc.0/16.0.0 to 14.2.1 due to Shakapacker compatibility issues - React on Rails 16 has breaking changes that cause PackerUtils.packer_type nil errors - Version 14.2.1 is stable and works correctly with Shakapacker 8.0.0 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7a21e66 commit 045668e

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
55

66
ruby "3.3.4"
77

8-
gem "react_on_rails", "16.0.1.rc.0"
8+
gem "react_on_rails", "14.2.1"
99
gem "shakapacker", "8.0.0"
1010

1111
# Bundle edge Rails instead: gem "rails", github: "rails/rails"

Gemfile.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,12 @@ GEM
297297
rdoc (6.14.2)
298298
erb
299299
psych (>= 4.0.0)
300-
react_on_rails (16.0.1.rc.0)
300+
react_on_rails (14.2.1)
301301
addressable
302302
connection_pool
303303
execjs (~> 2.5)
304304
rails (>= 5.2)
305305
rainbow (~> 3.0)
306-
shakapacker (>= 6.0)
307306
redcarpet (3.6.0)
308307
redis (5.3.0)
309308
redis-client (>= 0.22.0)
@@ -384,7 +383,7 @@ GEM
384383
rexml (~> 3.2, >= 3.2.5)
385384
rubyzip (>= 1.2.2, < 3.0)
386385
websocket (~> 1.0)
387-
semantic_range (3.0.0)
386+
semantic_range (3.1.0)
388387
sexp_processor (4.17.1)
389388
shakapacker (8.0.0)
390389
activesupport (>= 5.2)
@@ -482,7 +481,7 @@ DEPENDENCIES
482481
rails-html-sanitizer
483482
rails_best_practices
484483
rainbow
485-
react_on_rails (= 16.0.1.rc.0)
484+
react_on_rails (= 14.2.1)
486485
redcarpet
487486
redis (~> 5.0)
488487
rspec-rails (~> 6.0.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"react": "^19.0.0",
7979
"react-dom": "^19.0.0",
8080
"react-intl": "^6.4.4",
81-
"react-on-rails": "16.0.1-rc.0",
81+
"react-on-rails": "14.2.1",
8282
"react-redux": "^8.1.0",
8383
"react-router": "^6.13.0",
8484
"react-router-dom": "^6.13.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7268,10 +7268,10 @@ react-is@^18.0.0:
72687268
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b"
72697269
integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==
72707270

7271-
react-on-rails@16.0.1-rc.0:
7272-
version "16.0.1-rc.0"
7273-
resolved "https://registry.npmjs.org/react-on-rails/-/react-on-rails-16.0.1-rc.0.tgz#dc99c843430585b3017113a464035179488bb154"
7274-
integrity sha512-xCrrp1X/vfT+QZjRwN9TDzWfxsf8Iz11QMqXumMs1TrT+KgJ33LLgUXYvYxAdnYgv41MbRvDCXG4Q/2ieakxoA==
7271+
react-on-rails@14.2.1:
7272+
version "14.2.1"
7273+
resolved "https://registry.npmjs.org/react-on-rails/-/react-on-rails-14.2.1.tgz#e3072f21bb76a45de789fc78046d2bf0d9496878"
7274+
integrity sha512-1a7RCDzhM2/oAZChnJMcYDV023Gl6nwa5SAS+NW13jIpkigihiRw2ecYAFSjQq2BfCnASDw2z1ElmfTXhrYagw==
72757275

72767276
react-proxy@^1.1.7:
72777277
version "1.1.8"

0 commit comments

Comments
 (0)