ruby-hyperloop / hyper-react

The project has moved to Hyperstack!!
https://hyperstack.org/
MIT License
285 stars 14 forks source link

Client side render failed with react_ujs error #172

Closed zetachang closed 6 years ago

zetachang commented 8 years ago

Got this while using with rails integration.

react_ujs_mount.self-5293119….js?body=1:84 Uncaught Error: Cannot find component: 'React.TopLevelRailsComponent'. Make sure your component is globally available to render.
catmando commented 8 years ago

did you get it fixed? I have never seen that, but it I think it means what it says... seems like a config issue.

zetachang commented 8 years ago

No luck, I think I've screwed up with my setup with rails. Will get back to this later.

rewnad commented 7 years ago

@zetachang I just ran into this issue as well, did you end up getting it fixed?

catmando commented 7 years ago

@schoolandrew any chance u could push your project to a repo. I cannot reproduce, so it would be good to have example

sfcgeorge commented 7 years ago

I just got this trying to render a component using the helper - not via the App component.

<div>
  <%= react_component("Foo") %>
</div>

I got other errors like "uninitialized constant React::Component::Callbacks" when rendering via routing.

For me this was caused by attempting to use Opal 0.11 so I have opened that incompatibility as another issue.

janbiedermann commented 6 years ago

i believe this is fixed