{"action":"created","issue":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1360","repository_url":"https://api.github.com/repos/mgechev/angular2-seed","labels_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1360/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1360/comments","events_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1360/events","html_url":"https://github.com/mgechev/angular2-seed/issues/1360","id":177993131,"number":1360,"title":"AngularFire2 guide out of date","user":{"login":"daniel7912","id":5707575,"avatar_url":"https://avatars.githubusercontent.com/u/5707575?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel7912","html_url":"https://github.com/daniel7912","followers_url":"https://api.github.com/users/daniel7912/followers","following_url":"https://api.github.com/users/daniel7912/following{/other_user}","gists_url":"https://api.github.com/users/daniel7912/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel7912/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel7912/subscriptions","organizations_url":"https://api.github.com/users/daniel7912/orgs","repos_url":"https://api.github.com/users/daniel7912/repos","events_url":"https://api.github.com/users/daniel7912/events{/privacy}","received_events_url":"https://api.github.com/users/daniel7912/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-09-20T08:08:49Z","updated_at":"2016-09-22T13:12:09Z","closed_at":"2016-09-20T17:40:13Z","body":"Hi,\r\n\r\nI tried following your guide to implement AngularFire2 but the code looks as though it's out of date. E.g. there is no `SYSTEM_CONFIG_DEV` variable in `project.config.ts`, and the bootstrap function looks different too.\r\n\r\nIntsead, I included the files in project.config.ts like this:\r\n\r\n```\r\nthis.NPM_DEPENDENCIES = [\r\n      ...this.NPM_DEPENDENCIES,\r\n      {src: 'firebase/firebase.js', inject: 'libs'},\r\n      {src: 'angularfire2/angularfire2.js', inject: 'libs'},\r\n    ];\r\n```\r\n\r\nI also tried creating the code as described in the wiki currently:\r\n\r\n```\r\nthis.SYSTEM_CONFIG_DEV.paths['firebase'] =\r\n      `${this.APP_BASE}node_modules/firebase/firebase`;\r\n\r\n    this.SYSTEM_CONFIG_DEV.paths['angularfire2'] =\r\n      `${this.APP_BASE}node_modules/angularfire2/angularfire2`;\r\n\r\n    this.SYSTEM_BUILDER_CONFIG.packages['firebase'] = {\r\n        main: 'firebase.js',\r\n        defaultExtension : 'js'\r\n    };\r\n\r\n    this.SYSTEM_BUILDER_CONFIG.packages['angularfire2'] = {\r\n        main: 'angularfire2.js',\r\n        defaultExtension : 'js'\r\n    };\r\n```\r\n\r\nBut this caused the folllowing console error:\r\n\r\n`Cannot GET /node_modules/angularfire2/bundles/angularfire2.umd.js`\r\n\r\n\r\nI then followed the [official install instructions](https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md) and included AngularFireModule in the `app.module.ts` `@NgModule` instead. This gave me a load of typescript errors, such as:\r\n\r\n`/node_modules/angularfire2/interfaces.d.ts(12,35): error TS2503: Cannot find namespace 'firebase'.`\r\n\r\nCould you update the wiki please?\r\n"},"comment":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/comments/248899345","html_url":"https://github.com/mgechev/angular2-seed/issues/1360#issuecomment-248899345","issue_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1360","id":248899345,"user":{"login":"fedeguzman","id":13527533,"avatar_url":"https://avatars.githubusercontent.com/u/13527533?v=3","gravatar_id":"","url":"https://api.github.com/users/fedeguzman","html_url":"https://github.com/fedeguzman","followers_url":"https://api.github.com/users/fedeguzman/followers","following_url":"https://api.github.com/users/fedeguzman/following{/other_user}","gists_url":"https://api.github.com/users/fedeguzman/gists{/gist_id}","starred_url":"https://api.github.com/users/fedeguzman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedeguzman/subscriptions","organizations_url":"https://api.github.com/users/fedeguzman/orgs","repos_url":"https://api.github.com/users/fedeguzman/repos","events_url":"https://api.github.com/users/fedeguzman/events{/privacy}","received_events_url":"https://api.github.com/users/fedeguzman/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T13:12:09Z","updated_at":"2016-09-22T13:12:09Z","body":"It's so weird! Now in Windows 10 is working without any \"require\" error. Wish I could help you but I don't have Ubuntu here :(  Could you post the error here? Maybe someone can help us.\r\n\r\n@mgechev Any idea why @daniel7912 is getting the 404 error on Ubuntu?\r\n"}}
{"actor":{"display_login":"fedeguzman"}}