{"action":"created","issue":{"url":"https://api.github.com/repos/shakacode/react_on_rails/issues/170","labels_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/170/comments","events_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/170/events","html_url":"https://github.com/shakacode/react_on_rails/issues/170","id":123425619,"number":170,"title":"Production env broken under sprockets-rails >= 3 (Rails 5)","user":{"login":"thewoolleyman","id":158,"avatar_url":"https://avatars.githubusercontent.com/u/158?v=3","gravatar_id":"","url":"https://api.github.com/users/thewoolleyman","html_url":"https://github.com/thewoolleyman","followers_url":"https://api.github.com/users/thewoolleyman/followers","following_url":"https://api.github.com/users/thewoolleyman/following{/other_user}","gists_url":"https://api.github.com/users/thewoolleyman/gists{/gist_id}","starred_url":"https://api.github.com/users/thewoolleyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewoolleyman/subscriptions","organizations_url":"https://api.github.com/users/thewoolleyman/orgs","repos_url":"https://api.github.com/users/thewoolleyman/repos","events_url":"https://api.github.com/users/thewoolleyman/events{/privacy}","received_events_url":"https://api.github.com/users/thewoolleyman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-12-22T06:49:52Z","updated_at":"2015-12-25T22:28:43Z","closed_at":null,"body":"(Similar to issue as https://github.com/rails/sprockets-rails/issues/237)\r\n\r\nI'm running Rails 5 beta, and found this issue.\r\n\r\nWhen running in Rails production env with `config.assets.compile = false`, the `react_component` call in a view blows up.  The root cause is because the following line blows up due to `Rails.application.assets` being nil:\r\n\r\nhttps://github.com/shakacode/react_on_rails/blob/009db0d/lib/react_on_rails/server_rendering_pool.rb#L79\r\n\r\nThis is apparently new behavior in Sprockets 3 (see link to sprockets-rails issue above), which is why the example app (which uses sprockets-rails 2/Rails 4) still works.\r\n\r\nThanks,\r\n-- Chad"},"comment":{"url":"https://api.github.com/repos/shakacode/react_on_rails/issues/comments/167265102","html_url":"https://github.com/shakacode/react_on_rails/issues/170#issuecomment-167265102","issue_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/170","id":167265102,"user":{"login":"justin808","id":1118459,"avatar_url":"https://avatars.githubusercontent.com/u/1118459?v=3","gravatar_id":"","url":"https://api.github.com/users/justin808","html_url":"https://github.com/justin808","followers_url":"https://api.github.com/users/justin808/followers","following_url":"https://api.github.com/users/justin808/following{/other_user}","gists_url":"https://api.github.com/users/justin808/gists{/gist_id}","starred_url":"https://api.github.com/users/justin808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justin808/subscriptions","organizations_url":"https://api.github.com/users/justin808/orgs","repos_url":"https://api.github.com/users/justin808/repos","events_url":"https://api.github.com/users/justin808/events{/privacy}","received_events_url":"https://api.github.com/users/justin808/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T22:28:43Z","updated_at":"2015-12-25T22:28:43Z","body":"I'm going to be working on 2.0, which is the NPM conversion. When that happens, we won't need the JS asset and this issue will go away. In the meantime, if @martyphee has a PR, that would be **AWESOME**"}}