{"action":"created","issue":{"url":"https://api.github.com/repos/calvinmetcalf/rollup-plugin-node-globals/issues/4","repository_url":"https://api.github.com/repos/calvinmetcalf/rollup-plugin-node-globals","labels_url":"https://api.github.com/repos/calvinmetcalf/rollup-plugin-node-globals/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/calvinmetcalf/rollup-plugin-node-globals/issues/4/comments","events_url":"https://api.github.com/repos/calvinmetcalf/rollup-plugin-node-globals/issues/4/events","html_url":"https://github.com/calvinmetcalf/rollup-plugin-node-globals/issues/4","id":178388661,"number":4,"title":"\"Error: Could not resolve\" invalid path","user":{"login":"TheBosZ","id":560312,"avatar_url":"https://avatars.githubusercontent.com/u/560312?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBosZ","html_url":"https://github.com/TheBosZ","followers_url":"https://api.github.com/users/TheBosZ/followers","following_url":"https://api.github.com/users/TheBosZ/following{/other_user}","gists_url":"https://api.github.com/users/TheBosZ/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBosZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBosZ/subscriptions","organizations_url":"https://api.github.com/users/TheBosZ/orgs","repos_url":"https://api.github.com/users/TheBosZ/repos","events_url":"https://api.github.com/users/TheBosZ/events{/privacy}","received_events_url":"https://api.github.com/users/TheBosZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-09-21T15:53:14Z","updated_at":"2016-09-21T17:21:15Z","closed_at":null,"body":"When I include this plugin (I'm trying to get the AWS SDK working), I get an error as follows. It looks like my paths are losing backslash (\\\\). I'm on Windows 10.\r\n\r\n```\r\nC:\\Projects\\cloud-iris-web-frontend>.\\node_modules\\.bin\\rollup -c\r\nCould not resolve 'C:Projectscloud-iris-web-frontend\r\node_modulesprocess-esrowser.js' from C:\\Projects\\cloud-iris-web-frontend\\node_modules\\react\\lib\\checkReactTypeSpec.js\r\nError: Could not resolve 'C:Projectscloud-iris-web-frontend\r\node_modulesprocess-esrowser.js' from C:\\Projects\\cloud-iris-web-frontend\\node_modules\\react\\lib\\checkReactTypeSpec.js\r\n    at Error (native)\r\n    at C:\\Projects\\cloud-iris-web-frontend\\node_modules\\rollup-plugin-node-resolve\\dist\\rollup-plugin-node-resolve.cjs.js:78:21\r\n    at C:\\Projects\\cloud-iris-web-frontend\\node_modules\\browser-resolve\\index.js:265:24\r\n    at C:\\Projects\\cloud-iris-web-frontend\\node_modules\\resolve\\lib\\async.js:46:14\r\n    at process (C:\\Projects\\cloud-iris-web-frontend\\node_modules\\resolve\\lib\\async.js:173:43)\r\n    at ondir (C:\\Projects\\cloud-iris-web-frontend\\node_modules\\resolve\\lib\\async.js:188:17)\r\n    at load (C:\\Projects\\cloud-iris-web-frontend\\node_modules\\resolve\\lib\\async.js:69:43)\r\n    at onex (C:\\Projects\\cloud-iris-web-frontend\\node_modules\\resolve\\lib\\async.js:92:31)\r\n    at C:\\Projects\\cloud-iris-web-frontend\\node_modules\\resolve\\lib\\async.js:22:47\r\n    at FSReqWrap.oncomplete (fs.js:123:15)\r\nType rollup --help for help, or visit https://github.com/rollup/rollup/wiki\r\n```\r\n\r\nMy rollup.config.js is:\r\n\r\n```\r\nimport typescript from 'rollup-plugin-typescript';\r\nimport babel   from 'rollup-plugin-babel'\r\nimport replace from 'rollup-plugin-replace'\r\nimport uglify from 'rollup-plugin-uglify';\r\nimport sass from 'rollup-plugin-sass';\r\nimport commonjs from 'rollup-plugin-commonjs';\r\nimport resolve from 'rollup-plugin-node-resolve';\r\nimport json from 'rollup-plugin-json';\r\nimport builtins from 'rollup-plugin-node-builtins';\r\nimport globals from 'rollup-plugin-node-globals';\r\n\r\nexport default {\r\n\tentry: './src/index.tsx',\r\n\tdest: './dist/app.min.js',\r\n\tformat: 'iife',\r\n\tsourceMap: './dist/app.min.js.map',\r\n\tmoduleName: 'MyBundle',\r\n\tplugins: [\r\n\t\tbuiltins(),\r\n\t\tsass({\r\n\t\t\tinsert: true,\r\n\t\t\toptions: {\r\n\t\t\t\toutputStyle: 'compressed'\r\n\t\t\t}\r\n\t\t}),\r\n\t\treplace({\r\n\t\t\t'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development')\r\n\t\t}),\r\n\t\ttypescript(),\r\n\r\n\t\tresolve({\r\n\t\t\tjsnext: true,\r\n\t\t\tmain: true,\r\n\t\t\tbrowser: true,\r\n\t\t\tpreferBuiltins: true\r\n\t\t}),\r\n\r\n\t\tcommonjs({\r\n\t\t\tignoreGlobal: true,\r\n\t\t\tnamedExports: {\r\n\t\t\t\t'react': [\r\n\t\t\t\t\t'PropTypes',\r\n\t\t\t\t\t'createElement',\r\n\t\t\t\t\t'cloneElement',\r\n\t\t\t\t\t'Component'\r\n\t\t\t\t],\r\n\t\t\t\t'node_modules/react-dom/index.js': [\r\n\t\t\t\t\t'render'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\texclude: [\r\n\t\t\t]\r\n\t\t}),\r\n\r\n\t\tbabel({\r\n\t\t\texclude: 'node_modules/**',\r\n\t\t\tcompact: false\r\n\t\t}),\r\n\t\tglobals(),\r\n\t\tjson(),\r\n\r\n\t\t(process.env.NODE_ENV === 'production' && uglify())\r\n\t]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/calvinmetcalf/rollup-plugin-node-globals/issues/comments/248681605","html_url":"https://github.com/calvinmetcalf/rollup-plugin-node-globals/issues/4#issuecomment-248681605","issue_url":"https://api.github.com/repos/calvinmetcalf/rollup-plugin-node-globals/issues/4","id":248681605,"user":{"login":"TheBosZ","id":560312,"avatar_url":"https://avatars.githubusercontent.com/u/560312?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBosZ","html_url":"https://github.com/TheBosZ","followers_url":"https://api.github.com/users/TheBosZ/followers","following_url":"https://api.github.com/users/TheBosZ/following{/other_user}","gists_url":"https://api.github.com/users/TheBosZ/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBosZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBosZ/subscriptions","organizations_url":"https://api.github.com/users/TheBosZ/orgs","repos_url":"https://api.github.com/users/TheBosZ/repos","events_url":"https://api.github.com/users/TheBosZ/events{/privacy}","received_events_url":"https://api.github.com/users/TheBosZ/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T17:21:15Z","updated_at":"2016-09-21T17:21:15Z","body":"C:\\Projects\\cloud-iris-web-frontend>node -v\r\nv6.5.0"}}
{"actor":{"display_login":"TheBosZ"}}