{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-rails/issues/184","labels_url":"https://api.github.com/repos/reactjs/react-rails/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-rails/issues/184/comments","events_url":"https://api.github.com/repos/reactjs/react-rails/issues/184/events","html_url":"https://github.com/reactjs/react-rails/issues/184","id":58919918,"number":184,"title":"Trouble with basic install","user":{"login":"roygold","id":11195037,"avatar_url":"https://avatars.githubusercontent.com/u/11195037?v=3","gravatar_id":"","url":"https://api.github.com/users/roygold","html_url":"https://github.com/roygold","followers_url":"https://api.github.com/users/roygold/followers","following_url":"https://api.github.com/users/roygold/following{/other_user}","gists_url":"https://api.github.com/users/roygold/gists{/gist_id}","starred_url":"https://api.github.com/users/roygold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roygold/subscriptions","organizations_url":"https://api.github.com/users/roygold/orgs","repos_url":"https://api.github.com/users/roygold/repos","events_url":"https://api.github.com/users/roygold/events{/privacy}","received_events_url":"https://api.github.com/users/roygold/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-25T15:39:23Z","updated_at":"2015-03-19T21:41:01Z","closed_at":null,"body":"Hello, I'm struggling with a basic react-rails install in a simple/vanilla app.\r\n\r\nShort version:\r\n\r\nAfter an attempted install, Loading any page results in the error:\r\n\r\n```\r\n\"couldn't find file 'react'\r\n  (in .../app/assets/javascripts/application.js:16)\r\n```\r\ncoming from the second line of the extracted source below (from app/views/layouts/application.html.erb) \r\n```\r\n  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>\r\n  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>\r\n\r\n  <%= csrf_meta_tags %>\r\n</head>\r\n```\r\nAlso, if I try modifying config/environments/development.rb by adding \r\n```\r\nconfig.react.variant = :development\r\n```\r\nthen as soon as I start the rails server I get an error (personal paths changed to ... below)\r\n\r\n```\r\n$ bin/rails s -b 0.0.0.0\r\n=> Booting WEBrick\r\n=> Rails 4.2.0 application starting in development on http://0.0.0.0:3000\r\n=> Run `rails server -h` for more startup options\r\n=> Ctrl-C to shutdown server\r\nExiting\r\n.../.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `react' for #<Rails::Application::Configuration:0x00000001a79d50> (NoMethodError)\r\n\tfrom .../config/environments/development.rb:42:in `block in <top (required)>'\r\n\tfrom .../.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/railtie.rb:210:in `instance_eval'\r\n\tfrom .../.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/railtie.rb:210:in `configure'\r\n\tfrom .../config/environments/development.rb:1:in `<top (required)>'\r\n\tfrom .../.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'\r\n...\r\n```\r\n\r\nI have hit this with both 1.0.0.pre and 0.12.0, with no noticeable change. Here are the instructions I believe I've followed: https://github.com/reactjs/react-rails/blob/master/README.md\r\n\r\nHere's some info about what I'm running:\r\n\r\n```\r\n$ ruby -v\r\nruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]\r\n$ rails -v\r\nRails 4.2.0\r\n```\r\n\r\nThis line is at the bottom of my Gemfile:\r\n```\r\ngem 'react-rails', '~> 1.0.0.pre', github: 'reactjs/react-rails'\r\n```\r\nAnd I ran \"bundle install\", and here's the relevant parts of the output:\r\n```\r\nUsing react-source 0.12.2\r\nUsing react-rails 1.0.0.pre from git://github.com/reactjs/react-rails.git (at master)\r\n```\r\nI also ran \r\n```\r\nrails g react:install\r\n```\r\nHere's the relevant portion of app/assets/javascripts/application.js\r\n\r\n```\r\n...\r\n// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details\r\n// about supported directives.\r\n//\r\n//= require jquery\r\n//= require jquery_ujs\r\n//= require turbolinks\r\n//= require react\r\n//= require react_ujs\r\n//= require components\r\n//= require_tree .\r\n```\r\n\r\nThe sample app works fine if I leave out the newly added \"require\" lines from application.js (or comment out javascript_include_tag line from app/views/layouts/application.html.erb).\r\n\r\nAny suggestions would be very welcome; as I mentioned, I also tried 0.12 (based on the instructions here, and got the exact same results: https://github.com/reactjs/react-rails/blob/0.12/README.md )\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/reactjs/react-rails/issues/comments/83769799","html_url":"https://github.com/reactjs/react-rails/issues/184#issuecomment-83769799","issue_url":"https://api.github.com/repos/reactjs/react-rails/issues/184","id":83769799,"user":{"login":"bensie","id":4595,"avatar_url":"https://avatars.githubusercontent.com/u/4595?v=3","gravatar_id":"","url":"https://api.github.com/users/bensie","html_url":"https://github.com/bensie","followers_url":"https://api.github.com/users/bensie/followers","following_url":"https://api.github.com/users/bensie/following{/other_user}","gists_url":"https://api.github.com/users/bensie/gists{/gist_id}","starred_url":"https://api.github.com/users/bensie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensie/subscriptions","organizations_url":"https://api.github.com/users/bensie/orgs","repos_url":"https://api.github.com/users/bensie/repos","events_url":"https://api.github.com/users/bensie/events{/privacy}","received_events_url":"https://api.github.com/users/bensie/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T21:41:00Z","updated_at":"2015-03-19T21:41:00Z","body":"Sitting here with @rmosolgo, I came up with a Rails 4.2.1 app that may demonstrate this issue. For me, the app works fine if I'm running from react-rails/master, but if I lock to a RubyGems version, I get the `couldn't find file 'react'` error you described.\r\n\r\nhttps://github.com/bensie/react-rails-load-issue\r\n\r\nFails with https://github.com/bensie/react-rails-load-issue/blob/master/Gemfile#L26, but works if I change that line to `gem 'react-rails', '~> 1.0.0.pre', github: 'reactjs/react-rails'`.\r\n\r\nProposal: release master as 0.13.1.0 (aligns with current React version).\r\n\r\n:heart: :heart: :heart: "}}