-
Notifications
You must be signed in to change notification settings - Fork 754
making thunk work #818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I assume you are using Sprockets. I'll try spin up a version of my example app with redux and see if I can get it going. I just started a quick google along the lines of http://www.lampesberger.net/blog/2016/03/16/react-slash-redux-with-rails-3-dot-2-and-sprockets/ |
I only recently realised that recent versions of Sprockets actually load in node_modules, would it help you to |
So I now have react-rails 2.4.4 working... not sure why it wasn't that way in the Gemfile before. So now it's: According to the instructions, I should be able to:
Turns out webpacker requires rails >= 4.2, so I'll have to configure webpacker myself or use react_on_rails, which is working for another Rails 3.2 app. What should I do? Manual or switch to react_on_rails? |
http://guides.rubyonrails.org/maintenance_policy.html
|
@mustmodify any updates from your side? Closing the issue now. Feel free to reopen this if you are still facing the problem. |
Uh oh!
There was an error while loading. Please reload this page.
Help us help you! Please choose one:
react-rails
, so I've included the stack trace and the exact steps which make it crash.react-rails
with another library, but I'm having trouble. I've described my JavaScript management setup (eg, Sprockets, Webpack...), how I'm trying to use this other library, and why it's not working.This doesn't EXACTLY fit under my other ticket (#813) about a discussion of the asset pipeline vs npm but you might find some inspriation here for that content.
Due to a ton of dependency issues, I'm currently stuck with Rails 3.2 and react-rails 0.13.0.0.
I want to add redux.
I tried looking for a gem that had it. No luck. Again, dependency issues. I have another rails app working with react-on-rails, but due to my current ruby version on this app, I guess that's a non-starter. So I need something that isn't gem-or-ruby dependent.
In a last-ditch effort to avoid more infrastructure on the server (node, etc) I am trying to include redux via a CDN:
but in my js files, which are included after that, I don't have access to
applyMiddleware
orcreateStore
. In my react-on-rails app, I mustimport
everything; but whenever I try that, I get:so, am I stuck? I guess I must use NPM? Why can't I use
import
? Why can't I get access to thunk? It should be available...The text was updated successfully, but these errors were encountered: