{"action":"created","issue":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1117","repository_url":"https://api.github.com/repos/Reactive-Extensions/RxJS","labels_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1117/labels{/name}","comments_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1117/comments","events_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1117/events","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/1117","id":130764471,"number":1117,"title":"webpack can't resolve ./rx.lite from rx-lite-conincidence","user":{"login":"jeffbski","id":5689,"avatar_url":"https://avatars.githubusercontent.com/u/5689?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffbski","html_url":"https://github.com/jeffbski","followers_url":"https://api.github.com/users/jeffbski/followers","following_url":"https://api.github.com/users/jeffbski/following{/other_user}","gists_url":"https://api.github.com/users/jeffbski/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffbski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffbski/subscriptions","organizations_url":"https://api.github.com/users/jeffbski/orgs","repos_url":"https://api.github.com/users/jeffbski/repos","events_url":"https://api.github.com/users/jeffbski/events{/privacy}","received_events_url":"https://api.github.com/users/jeffbski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T18:00:44Z","updated_at":"2016-02-02T18:25:43Z","closed_at":null,"body":"I was hoping to use rx-lite-coincidence rather than rx to cut down on the size for the browser. I basically only need some of rx-lite and groupByUntil so I thought that rx-lite-coincidence would be what I need. \r\n\r\nHowever after npm installing rx-lite-coincidence@4.0.7 (which installed a dependency of rx-lite@4.0.7) webpack was giving an error in trying to find rx-lite which I think has something to do with how it is parsing the UMD.\r\n\r\n```\r\nERROR in ./~/rx-lite-coincidence/rx.lite.coincidence.js\r\nModule not found: Error: Cannot resolve 'file' or 'directory' ./rx.lite in /Users/jeff/working/cwplatform/node_modules/rx-lite-coincidence\r\n @ ./~/rx-lite-coincidence/rx.lite.coincidence.js 24:4-26:6\r\n```\r\n\r\nI would think that this should just work since that's one of the reasons for having this package is so webpack and browserify can pull in lighter versions of Rx since in Node.js we would always just use the full version.\r\n\r\nI also tried installing rx-lite along with rx-lite-coincidence and that didn't make any difference either. \r\n\r\nAny suggestions?\r\n"},"comment":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/comments/178739619","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/1117#issuecomment-178739619","issue_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/1117","id":178739619,"user":{"login":"jeffbski","id":5689,"avatar_url":"https://avatars.githubusercontent.com/u/5689?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffbski","html_url":"https://github.com/jeffbski","followers_url":"https://api.github.com/users/jeffbski/followers","following_url":"https://api.github.com/users/jeffbski/following{/other_user}","gists_url":"https://api.github.com/users/jeffbski/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffbski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffbski/subscriptions","organizations_url":"https://api.github.com/users/jeffbski/orgs","repos_url":"https://api.github.com/users/jeffbski/repos","events_url":"https://api.github.com/users/jeffbski/events{/privacy}","received_events_url":"https://api.github.com/users/jeffbski/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T18:25:43Z","updated_at":"2016-02-02T18:25:43Z","body":"I found that if I go in and change the source so the define is using ['rx-lite'] instead of './rx.lite' then the build resolves everything properly. I'm not sure if that is the best fix, but it seems to work for this use case.\r\n\r\n```javascript\r\n  if (typeof define === 'function' && define.amd) {\r\n    define(['rx-lite'], function (Rx, exports) {\r\n      return factory(root, exports, Rx);\r\n    });\r\n  } else if (typeof module === 'object' && module && module.exports === freeExports) {\r\n    module.exports = factory(root, module.exports, require('rx-lite'));\r\n  } else {\r\n    root.Rx = factory(root, {}, root.Rx);\r\n  }\r\n}.call(this, function (root, exp, Rx, undefined) {\r\n\r\n\r\n```"}}