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 CI failure by skipping version validation during generator runtime
The strict version validation added in #1881 runs during Rails initialization
via an after_initialize hook. However, when running `rails generate react_on_rails:install`,
the npm packages haven't been installed yet, causing the validation to fail with:
"No React on Rails npm package is installed."
This fix adds a check to skip validation when running Rails generators (detected by
checking if ARGV.first is "generate" or "g"). The generator will install packages
during its execution, so validation at initialization time is not appropriate.
This allows CI to successfully run example generation tasks without errors.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments