{"action":"created","issue":{"url":"https://api.github.com/repos/brunch/brunch/issues/1094","labels_url":"https://api.github.com/repos/brunch/brunch/issues/1094/labels{/name}","comments_url":"https://api.github.com/repos/brunch/brunch/issues/1094/comments","events_url":"https://api.github.com/repos/brunch/brunch/issues/1094/events","html_url":"https://github.com/brunch/brunch/issues/1094","id":125089879,"number":1094,"title":"Adding react through config.npm throws:  Cannot find module 'c:\\code\\brunchtest\\node_modules\\react\\lib\\React.js\\package.json'","user":{"login":"mordra","id":4709169,"avatar_url":"https://avatars.githubusercontent.com/u/4709169?v=3","gravatar_id":"","url":"https://api.github.com/users/mordra","html_url":"https://github.com/mordra","followers_url":"https://api.github.com/users/mordra/followers","following_url":"https://api.github.com/users/mordra/following{/other_user}","gists_url":"https://api.github.com/users/mordra/gists{/gist_id}","starred_url":"https://api.github.com/users/mordra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mordra/subscriptions","organizations_url":"https://api.github.com/users/mordra/orgs","repos_url":"https://api.github.com/users/mordra/repos","events_url":"https://api.github.com/users/mordra/events{/privacy}","received_events_url":"https://api.github.com/users/mordra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2016-01-06T01:20:58Z","updated_at":"2016-01-26T22:46:27Z","closed_at":"2016-01-26T19:06:36Z","body":"On windows 8, simple test app with react throws a compile error:\r\n```\r\n$ brunch watch --server                                                                      \r\n06 Jan 12:15:30 - info: application started on http://localhost:3333/                        \r\nmodule.js:340                                                                                \r\n    throw err;                                                                               \r\n    ^                                                                                        \r\n                                                                                             \r\nError: Cannot find module 'c:\\code\\brunchtest\\node_modules\\react\\lib\\React.js\\package.json'  \r\n  at Function.Module._resolveFilename (module.js:338:15)                                     \r\n  at Function.Module._load (module.js:289:25)                                                \r\n  at Module.require (module.js:366:17)                                                       \r\n  at require (module.js:385:17)                                                              \r\n  at filePath (c:\\code\\brunchtest\\node_modules\\brunch\\lib\\deppack.js:55:33)                  \r\n  at filePath (c:\\code\\brunchtest\\node_modules\\brunch\\lib\\deppack.js:58:37)                  \r\n  at Object.keys.filter.forEach (c:\\code\\brunchtest\\node_modules\\brunch\\lib\\deppack.js:73:17)\r\n  at generateModule (c:\\code\\brunchtest\\node_modules\\brunch\\lib\\deppack.js:101:14)           \r\n  at c:\\code\\brunchtest\\node_modules\\brunch\\lib\\deppack.js:157:13                            \r\n  at tryToString (fs.js:414:3)                                                               \r\n  at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:401:12)                             \r\n```\r\n\r\nbrunch-config\r\n```\r\n'use strict';  \r\n    exports.config = {\r\n      files: {\r\n        javascripts: {\r\n          joinTo: 'app.js'\r\n        }\r\n      },\r\n      plugins: {\r\n        browserSync: {\r\n          port: 3336\r\n          //,logLevel: \"debug\"\r\n        },\r\n        babel: {\r\n          presets: ['es2015'],\r\n          pattern: /\\.(es6|jsx|js)$/\r\n        }\r\n      },\r\n      npm:{\r\n        enabled: true\r\n      }\r\n    };\r\n```\r\npackage.json\r\n```\r\n{\r\n      \"name\": \"your-app\",\r\n      \"description\": \"Description\",\r\n      \"author\": \"Your Name\",\r\n      \"version\": \"0.0.1\",\r\n      \"repository\": {\r\n        \"type\": \"git\",\r\n        \"url\": \"\"\r\n      },\r\n      \"scripts\": {\r\n        \"start\": \"brunch watch --server\"\r\n      },\r\n      \"dependencies\": {\r\n        \"babel-brunch\": \"^6.0.0\",\r\n        \"browser-sync-brunch\": \"0.0.9\",\r\n        \"brunch\": \"^2.1.1\",\r\n        \"clean-css-brunch\": \">= 1.0 < 1.9\",\r\n        \"css-brunch\": \">= 1.0 < 1.9\",\r\n        \"javascript-brunch\": \">= 1.0 < 1.9\",\r\n        \"react\": \"^0.14.5\",\r\n        \"react-dom\": \"^0.14.5\",\r\n        \"uglify-js-brunch\": \">= 1.0 < 1.9\"\r\n      }\r\n    }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/brunch/brunch/issues/comments/175275687","html_url":"https://github.com/brunch/brunch/issues/1094#issuecomment-175275687","issue_url":"https://api.github.com/repos/brunch/brunch/issues/1094","id":175275687,"user":{"login":"mordra","id":4709169,"avatar_url":"https://avatars.githubusercontent.com/u/4709169?v=3","gravatar_id":"","url":"https://api.github.com/users/mordra","html_url":"https://github.com/mordra","followers_url":"https://api.github.com/users/mordra/followers","following_url":"https://api.github.com/users/mordra/following{/other_user}","gists_url":"https://api.github.com/users/mordra/gists{/gist_id}","starred_url":"https://api.github.com/users/mordra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mordra/subscriptions","organizations_url":"https://api.github.com/users/mordra/orgs","repos_url":"https://api.github.com/users/mordra/repos","events_url":"https://api.github.com/users/mordra/events{/privacy}","received_events_url":"https://api.github.com/users/mordra/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T22:46:27Z","updated_at":"2016-01-26T22:46:27Z","body":"I can confirm my snippets works on v2.2.1 on win8.1 and ubuntu 14.04\r\nThanks for the speedy fixes :) (sorry I didn't respond yesterday, Australia day national holiday over here)"}}