joshleblanc / view_component_reflex

Call component methods right from your markup
http://view-component-reflex-expo.grep.sh/
MIT License
291 stars 27 forks source link

StimulusReflex::Channel Failed to invoke CounterComponent#increment #7

Closed danclark5 closed 4 years ago

danclark5 commented 4 years ago

I'm trying to integrate view_component_reflex 2.1.4, but I'm getting the following error.

StimulusReflex::Channel Failed to invoke CounterComponent#increment! http://localhost:3000/meals/2 uninitialized constant StimulusReflex::NothingBroadcaster /home/dan/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:80:in `block in load_missing_constant'

If I downgrade to 2.1.2 things work, but I haven't dug too much into this one. I added the counter_component to establish a working baseline. It's accessible on the show meal page.

Let me know if you have any ideas. I'll continue to dig tomorrow morning.

joshleblanc commented 4 years ago

Update stimulus reflex to 3.3.0-pre2. Don't forget to update the npm package too.

joshleblanc commented 4 years ago

I pushed 2.1.5 which pins SR to 3.3.0.pre2

danclark5 commented 4 years ago

That was it. Thanks!