{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/redux/issues/1371","repository_url":"https://api.github.com/repos/rackt/redux","labels_url":"https://api.github.com/repos/rackt/redux/issues/1371/labels{/name}","comments_url":"https://api.github.com/repos/rackt/redux/issues/1371/comments","events_url":"https://api.github.com/repos/rackt/redux/issues/1371/events","html_url":"https://github.com/rackt/redux/issues/1371","id":131899505,"number":1371,"title":"Cannot find module \"lodash/_isHostObject\" from \"lodash/isPlainObject\" ","user":{"login":"st23am","id":3796,"avatar_url":"https://avatars.githubusercontent.com/u/3796?v=3","gravatar_id":"","url":"https://api.github.com/users/st23am","html_url":"https://github.com/st23am","followers_url":"https://api.github.com/users/st23am/followers","following_url":"https://api.github.com/users/st23am/following{/other_user}","gists_url":"https://api.github.com/users/st23am/gists{/gist_id}","starred_url":"https://api.github.com/users/st23am/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/st23am/subscriptions","organizations_url":"https://api.github.com/users/st23am/orgs","repos_url":"https://api.github.com/users/st23am/repos","events_url":"https://api.github.com/users/st23am/events{/privacy}","received_events_url":"https://api.github.com/users/st23am/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-06T20:59:52Z","updated_at":"2016-02-08T17:44:34Z","closed_at":"2016-02-08T17:44:34Z","body":"When using redux version 3.3.0 w/ Node 5.5.0 and Npm version 3.7.2 I am getting\r\n\r\n`Cannot find module \"lodash/_isHostObject\" from \"lodash/isPlainObject\"` errors.\r\n\r\n```\r\napp.js:79Uncaught Error: Cannot find module \"lodash/_isHostObject\" from \"lodash/isPlainObject\"require @ app.js:79expanded @ app.js:56(anonymous function) @ app.js:121(anonymous function) @ isPlainObject.js:3initModule @ app.js:63require @ app.js:73expanded @ app.js:56(anonymous function) @ app.js:121(anonymous function) @ createStore.js:9initModule @ app.js:63require @ app.js:73expanded @ app.js:56(anonymous function) @ index.js:2(anonymous function) @ app.js:121(anonymous function) @ index.js:8initModule @ app.js:63require @ app.js:73expanded @ app.js:56(anonymous function) @ NPCList.js:4initModule @ app.js:63require @ app.js:73expanded @ app.js:56(anonymous function) @ test_the_test_framework.spec.js:3initModule @ app.js:63require @ app.js:73(anonymous function) @ socket.js:62\r\n```\r\nI was able to fix this earlier by downgrading lodash in the package.json of redux but it doesn't not seem to work anymore.\r\n\r\nPlease let me know if you need any further information and I will be happy to provide.\r\n\r\nThank you for all your hard work."},"comment":{"url":"https://api.github.com/repos/rackt/redux/issues/comments/181492968","html_url":"https://github.com/rackt/redux/issues/1371#issuecomment-181492968","issue_url":"https://api.github.com/repos/rackt/redux/issues/1371","id":181492968,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T17:44:34Z","updated_at":"2016-02-08T17:44:34Z","body":"Thank you again for an easy way to reproduce.\r\nThe issue is caused by [this line of code in Brunch](https://github.com/brunch/brunch/blob/795fc4b6814c1355d64b68155cdd7865d882c60b/lib/application.js#L242\r\n):\r\n\r\n```js\r\n  if (conventions.ignored == null) {\r\n    conventions.ignored = paths.ignored || [/[\\\\\\/]_/, /vendor[\\\\\\/](node|j?ruby-.*|bundle)[\\\\\\/]/];\r\n  }\r\n```\r\n\r\nIf you don’t explicitly specify `conventions`, Brunch decides that any file starting with an underscore is not worth including into the build, regardless of whether it is referenced by other files. In this case, it produces a broken build, as the module is referenced but not included.\r\n\r\n¯\\_(ツ)_/¯ \r\n\r\nThe temporary fix would be to explicitly specify `conventions.ignored` as a more restrictive regex in your Brunch config. A permanent fix would be to raise an issue on Brunch issue tracker, describe the problem, and maybe contribute a fix."}}