GithubHelp home page GithubHelp logo

0.11.1.0 is broken about react-rails HOT 3 CLOSED

reactjs avatar reactjs commented on July 27, 2024
0.11.1.0 is broken

from react-rails.

Comments (3)

xionon avatar xionon commented on July 27, 2024

Here's an example repo, that just tries to include react.js in the application.js file, as specified in the instructions:

https://github.com/xionon/react-test

from react-rails.

zpao avatar zpao commented on July 27, 2024

Is there a reason that the gem published to rubygems.org isn't tracking the master branch?

Because master has new features. The plan months ago was to get off of the "track React versions" path when server rendering and whatever helpers felt good, then call it 1.0. This hasn't gotten enough love to get there. I would love for it to (I'm looking for maintainers, let me know if you want to get more involved!)

#46 is closed and should not be reopened. < 1.0 doesn't include react_ujs so it won't be found.

As to why react could not be found, 0.x does not provide any defaults for the variant of react. You must specify config.react.variant. If I do that in your example app, it works. Looking at the readme in the 0.11 branch, that doesn't seem as clear as I remember it. Master defaults to using the version matching your environment (which is a nice detail) - https://github.com/reactjs/react-rails/blob/master/lib/react/rails/railtie.rb#L9

from react-rails.

xionon avatar xionon commented on July 27, 2024

Ahhhh, duh. I've been working off master so long, I forgot I had to specify
the variant. Sorry!

On Fri, Aug 1, 2014 at 1:02 AM, Paul O’Shannessy [email protected]
wrote:

Is there a reason that the gem published to rubygems.org isn't tracking
the master branch?

Because master has new features. The plan months ago was to get off of the
"track React versions" path when server rendering and whatever helpers felt
good, then call it 1.0. This hasn't gotten enough love to get there. I
would love for it to (I'm looking for maintainers, let me know if you want
to get more involved!)

#46 #46 is closed and
should not be reopened. < 1.0 doesn't include react_ujs so it won't be
found.

As to why react could not be found, 0.x does not provide any defaults for
the variant of react. You must specify config.react.variant. If I do that
in your example app, it works. Looking at the readme in the 0.11 branch,
that doesn't seem as clear as I remember it. Master defaults to using the
version matching your environment (which is a nice detail) -
https://github.com/reactjs/react-rails/blob/master/lib/react/rails/railtie.rb#L9


Reply to this email directly or view it on GitHub
#71 (comment).

from react-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.