You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix doctor rake task LoadError with excluded task_helpers (#1795)
Resolves critical LoadError in `rake react_on_rails:doctor` when using the packaged gem.
**Problem:**
- The doctor.rake task (added in 27dba50) required "../../rakelib/task_helpers"
- The rakelib directory has been excluded from gem packaging since 2c04db6 (1.5+ years ago)
- This caused `LoadError: cannot load such file -- rakelib/task_helpers` in packaged gems
**Solution:**
- Remove unnecessary require_relative "../../rakelib/task_helpers" from doctor.rake
- Remove unused include ReactOnRails::TaskHelpers line
- Add test coverage to prevent future regressions
**Impact:**
- ✅ Doctor task now works correctly in packaged gems
- ✅ No functionality lost - TaskHelpers was not actually used
- ✅ Added regression test to ensure rake file loads without missing dependencies
- ✅ All existing tests pass
This fix enables users to run `rake react_on_rails:doctor` successfully in production environments and when using the published gem, restoring critical diagnostic functionality.
0 commit comments