Skip to content

Commit b7171e5

Browse files
justin808claude
andcommitted
Add ror_components wrapper for ReScript component
The react_on_rails gem auto-generates component registration by scanning for ror_components/ subdirectories. When we migrated to .res.js, we deleted the old ror_components wrapper, breaking auto-registration. Created a thin wrapper that imports the .res.js file and re-exports it for react_on_rails to discover and register. This fixes the CI error: "Could not find component registered with name RescriptShow" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 13449f0 commit b7171e5

File tree

1 file changed

+6
-0
lines changed
  • client/app/bundles/comments/rescript/ReScriptShow/ror_components

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Wrapper for ReScript component to work with react_on_rails auto-registration
2+
// react_on_rails looks for components in ror_components/ subdirectories
3+
4+
import RescriptShow from '../../ReScriptShow.res.js';
5+
6+
export default RescriptShow;

0 commit comments

Comments
 (0)