{"action":"created","issue":{"url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/164","repository_url":"https://api.github.com/repos/browserify-rails/browserify-rails","labels_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/164/comments","events_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/164/events","html_url":"https://github.com/browserify-rails/browserify-rails/issues/164","id":150611725,"number":164,"title":"rake assets:precompile on heroku failing. Can't find module './implementation'","user":{"login":"Jshyu523","id":9833924,"avatar_url":"https://avatars.githubusercontent.com/u/9833924?v=3","gravatar_id":"","url":"https://api.github.com/users/Jshyu523","html_url":"https://github.com/Jshyu523","followers_url":"https://api.github.com/users/Jshyu523/followers","following_url":"https://api.github.com/users/Jshyu523/following{/other_user}","gists_url":"https://api.github.com/users/Jshyu523/gists{/gist_id}","starred_url":"https://api.github.com/users/Jshyu523/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jshyu523/subscriptions","organizations_url":"https://api.github.com/users/Jshyu523/orgs","repos_url":"https://api.github.com/users/Jshyu523/repos","events_url":"https://api.github.com/users/Jshyu523/events{/privacy}","received_events_url":"https://api.github.com/users/Jshyu523/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-24T00:57:21Z","updated_at":"2016-04-24T01:06:24Z","closed_at":null,"body":"Hi all,\r\n\r\nI can't figure out what exactly is this problem when trying to deploy to Heroku. Below is the error message I'm getting:\r\n\r\n```\r\nremote:        rake aborted!\r\nremote:        BrowserifyRails::BrowserifyError: Error while running `/tmp/build_0e7578747ae20f125e6ec8ee39fb05b5/node_modules/.bin/browserify -t reactify --extension=\".jsx\" --list -o \"/tmp/build_0e7578747ae20f125e6ec8ee39fb05b5/tmp/cache/browserify-rails/output20160424-1178-tu924v\" -`:\r\nremote:        module.js:341\r\nremote:        throw err;\r\nremote:        ^\r\nremote:        Error: Cannot find module './implementation'\r\nremote:        at Function.Module._resolveFilename (module.js:339:15)\r\nremote:        at Function.Module._load (module.js:290:25)\r\nremote:        at Module.require (module.js:367:17)\r\nremote:        at require (internal/module.js:16:19)\r\nremote:        at Object.<anonymous> (/tmp/build_0e7578747ae20f125e6ec8ee39fb05b5/node_modules/browserify/node_modules/has/node_modules/function-bind/index.js:1:84)\r\nremote:        at Module._compile (module.js:413:34)\r\nremote:        at Object.Module._extensions..js (module.js:422:10)\r\nremote:        at Module.load (module.js:357:32)\r\nremote:        at Function.Module._load (module.js:314:12)\r\nremote:        at Module.require (module.js:367:17)\r\n```\r\n\r\nHere is my application.rb:\r\n```\r\nmodule Test\r\n  class Application < Rails::Application\r\n    config.active_record.raise_in_transactional_callbacks = true\r\n    config.browserify_rails.commandline_options = \"-t reactify --extension=\\\".jsx\\\"\"\r\n    config.browserify_rails.node_env = \"production\"\r\n    config.react.addons = true\r\n  end\r\nend\r\n```\r\n\r\nHere is my package.json:\r\n```\r\n{\r\n  \"name\": \"test\",\r\n  \"dependencies\": {\r\n    \"browserify\": \"^12.0.1\",\r\n    \"browserify-incremental\": \"^3.0.1\",\r\n    \"chart.js\": \"^1.0.2\",\r\n    \"classnames\": \"^2.2.1\",\r\n    \"flux\": \"^2.1.1\",\r\n    \"object-assign\": \"^4.0.1\",\r\n    \"react\": \"^0.14.7\",\r\n    \"react-chartjs\": \"^0.7.3\",\r\n    \"react-dom\": \"^0.14.7\",\r\n    \"react-tooltip\": \"^1.1.2\",\r\n    \"reactify\": \"^1.1.0\"\r\n  },\r\n  \"license\": \"MIT\",\r\n  \"engines\": {\r\n    \"node\": \">= 0.10\"\r\n  }\r\n}\r\n```\r\n\r\nrake assets:precompile RAILS_ENV=production works just fine. I've also configured the buildpacks to have nodejs first, then ruby.\r\n\r\nAnyone ever run into this issue? Any tips will help. Thanks"},"comment":{"url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/comments/213861917","html_url":"https://github.com/browserify-rails/browserify-rails/issues/164#issuecomment-213861917","issue_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/164","id":213861917,"user":{"login":"cymen","id":121034,"avatar_url":"https://avatars.githubusercontent.com/u/121034?v=3","gravatar_id":"","url":"https://api.github.com/users/cymen","html_url":"https://github.com/cymen","followers_url":"https://api.github.com/users/cymen/followers","following_url":"https://api.github.com/users/cymen/following{/other_user}","gists_url":"https://api.github.com/users/cymen/gists{/gist_id}","starred_url":"https://api.github.com/users/cymen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cymen/subscriptions","organizations_url":"https://api.github.com/users/cymen/orgs","repos_url":"https://api.github.com/users/cymen/repos","events_url":"https://api.github.com/users/cymen/events{/privacy}","received_events_url":"https://api.github.com/users/cymen/received_events","type":"User","site_admin":false},"created_at":"2016-04-24T01:06:24Z","updated_at":"2016-04-24T01:06:24Z","body":"Do you have a module pulled in with something like `var implementation  require('./implemenation');` -- if so, can you show that line. And do you have any configuration at all in any of the other environmental files in config? Like maybe adding an asset path in the development environment?\r\n\r\nIt is odd that it works fine with production locally so it suggests it's not the configuration but wanted to ask."}}