{"action":"created","issue":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/615","repository_url":"https://api.github.com/repos/mgechev/angular2-seed","labels_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/615/comments","events_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/615/events","html_url":"https://github.com/mgechev/angular2-seed/issues/615","id":140000421,"number":615,"title":"SystemJS configuration for modules utlizing package.json (specifically angular2-moment)","user":{"login":"cviccaro","id":1939251,"avatar_url":"https://avatars.githubusercontent.com/u/1939251?v=3","gravatar_id":"","url":"https://api.github.com/users/cviccaro","html_url":"https://github.com/cviccaro","followers_url":"https://api.github.com/users/cviccaro/followers","following_url":"https://api.github.com/users/cviccaro/following{/other_user}","gists_url":"https://api.github.com/users/cviccaro/gists{/gist_id}","starred_url":"https://api.github.com/users/cviccaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cviccaro/subscriptions","organizations_url":"https://api.github.com/users/cviccaro/orgs","repos_url":"https://api.github.com/users/cviccaro/repos","events_url":"https://api.github.com/users/cviccaro/events{/privacy}","received_events_url":"https://api.github.com/users/cviccaro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-10T20:30:03Z","updated_at":"2016-04-24T21:04:25Z","closed_at":"2016-03-11T13:04:26Z","body":"Hi there, just as a preface, love the work you all have put into this.  I encountered a small issue when trying to import one specific npm module, but I'm not sure if this issue is germane to angular2-seed or not.  So I hope someone can clear it up.\r\n\r\nThe module angular2-moment is the only module I've used yet that wasn't working simply by installing via npm and importing into a .ts file.  I am a bit out of my depth here, but it seems like this module requires its package.json to be read in order to work with angular2-seed.  Without the configuration change below, a 404 is returned for /node_modules/moment.js (whereas it should be pulling /node_modules/moment/moment.js). In case this is a common thing, there is a small fix to add to the SystemJS configuration to get it to work.  \r\n\r\nIn tools/config/seed.config.ts, line 87, the packageConfigPaths key must be added to the options:\r\n\r\n```\r\n  protected SYSTEM_CONFIG_DEV = {\r\n    defaultJSExtensions: true,\r\n// ADD THIS LINE\r\n    packageConfigPaths: [`${this.APP_BASE}node_modules/*/package.json`],\r\n//\r\n    paths: {\r\n      [this.BOOTSTRAP_MODULE]: `${this.APP_BASE}${this.BOOTSTRAP_MODULE}`,\r\n      'angular2/*': `${this.APP_BASE}angular2/*`,\r\n      'rxjs/*': `${this.APP_BASE}rxjs/*`,\r\n      '*': `${this.APP_BASE}node_modules/*`\r\n    },\r\n    packages: {\r\n      angular2: { defaultExtension: false },\r\n      rxjs: { defaultExtension: false }\r\n    }\r\n  };\r\n```\r\n\r\nI've also posted this to angular2-moment (see https://github.com/urish/angular2-moment/issues/19)  If this is not relevant to angular2-seed, apologies!"},"comment":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/comments/214037028","html_url":"https://github.com/mgechev/angular2-seed/issues/615#issuecomment-214037028","issue_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/615","id":214037028,"user":{"login":"d3viant0ne","id":8420490,"avatar_url":"https://avatars.githubusercontent.com/u/8420490?v=3","gravatar_id":"","url":"https://api.github.com/users/d3viant0ne","html_url":"https://github.com/d3viant0ne","followers_url":"https://api.github.com/users/d3viant0ne/followers","following_url":"https://api.github.com/users/d3viant0ne/following{/other_user}","gists_url":"https://api.github.com/users/d3viant0ne/gists{/gist_id}","starred_url":"https://api.github.com/users/d3viant0ne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3viant0ne/subscriptions","organizations_url":"https://api.github.com/users/d3viant0ne/orgs","repos_url":"https://api.github.com/users/d3viant0ne/repos","events_url":"https://api.github.com/users/d3viant0ne/events{/privacy}","received_events_url":"https://api.github.com/users/d3viant0ne/received_events","type":"User","site_admin":false},"created_at":"2016-04-24T21:04:25Z","updated_at":"2016-04-24T21:04:25Z","body":"@andvasp - Fork updated to alpha.3 & I added my take to the whole project.confg thing in DeviantJS/angular2-seed-material2#10"}}