{"action":"created","issue":{"url":"https://api.github.com/repos/moff/angular2-flash-messages/issues/18","repository_url":"https://api.github.com/repos/moff/angular2-flash-messages","labels_url":"https://api.github.com/repos/moff/angular2-flash-messages/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/moff/angular2-flash-messages/issues/18/comments","events_url":"https://api.github.com/repos/moff/angular2-flash-messages/issues/18/events","html_url":"https://github.com/moff/angular2-flash-messages/issues/18","id":218690566,"number":18,"title":"Cannot find module angular2-flash-messages","user":{"login":"ATakaSKY","id":17201629,"avatar_url":"https://avatars0.githubusercontent.com/u/17201629?v=3","gravatar_id":"","url":"https://api.github.com/users/ATakaSKY","html_url":"https://github.com/ATakaSKY","followers_url":"https://api.github.com/users/ATakaSKY/followers","following_url":"https://api.github.com/users/ATakaSKY/following{/other_user}","gists_url":"https://api.github.com/users/ATakaSKY/gists{/gist_id}","starred_url":"https://api.github.com/users/ATakaSKY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATakaSKY/subscriptions","organizations_url":"https://api.github.com/users/ATakaSKY/orgs","repos_url":"https://api.github.com/users/ATakaSKY/repos","events_url":"https://api.github.com/users/ATakaSKY/events{/privacy}","received_events_url":"https://api.github.com/users/ATakaSKY/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-01T11:44:48Z","updated_at":"2017-04-04T11:02:40Z","closed_at":null,"body":"I am trying to use angular2-flash-messages but getting `Cannot find module angular2-flash-messages`.\r\n\r\nFollowed installation steps from https://github.com/moff/angular2-flash-messages.\r\n\r\nAttaching my **app.module.ts**-\r\n```\r\n\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { HttpModule } from '@angular/http';\r\nimport {RouterModule, Routes} from '@angular/router';\r\nimport { AngularFireModule, AuthProviders, AuthMethods} from 'angularfire2';\r\nimport {FirebaseService} from './services/firebase.service';\r\nimport {FlashMessagesModule} from 'angular2-flash-messages';\r\n\r\nimport { AppComponent } from './app.component';\r\nimport { HomeComponent } from './components/home/home.component';\r\nimport { ListingsComponent } from './components/listings/listings.component';\r\nimport { NavbarComponent } from './components/navbar/navbar.component';\r\nimport { ListingComponent } from './components/listing/listing.component';\r\nimport { AddListingComponent } from './components/add-listing/add-listing.component';\r\nimport { EditListingComponent } from './components/edit-listing/edit-listing.component';\r\n\r\n\r\nconst appRoutes: Routes = [\r\n  {path:'', component:HomeComponent},\r\n  {path: 'listings', component:ListingsComponent},\r\n  {path:'listing/:id', component:ListingComponent},\r\n  {path: 'add-listing', component:AddListingComponent}\r\n]\r\n\r\n@NgModule({\r\n  declarations: [\r\n    AppComponent,\r\n    HomeComponent,\r\n    ListingsComponent,\r\n    NavbarComponent,\r\n    ListingComponent,\r\n    AddListingComponent,\r\n    EditListingComponent\r\n  ],\r\n  imports: [\r\n    BrowserModule,\r\n    FormsModule,\r\n    HttpModule,\r\n    FlashMessagesModule,\r\n    RouterModule.forRoot(appRoutes)\r\n  ],\r\n  providers: [FirebaseService],\r\n  bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n\r\n```\r\n\r\nAnd here'e the error:\r\n```\r\nERROR in C:/Users/user/Downloads/Compressed/proplistings_part_4/src/app/components/navbar/navbar.component.ts (3,36): Cannot find module 'angular2-fla\r\nsh-messages'.\r\n\r\nERROR in C:/Users/user/Downloads/Compressed/proplistings_part_4/src/app/app.module.ts (8,35): Cannot find module 'angular2-flash-messages'.\r\n\r\nERROR in C:/Users/user/Downloads/Compressed/proplistings_part_4/src/app/app.module.ts (8,35): Cannot find module 'angular2-flash-messages'.\r\n```\r\n\r\nCan someone help here.\r\n"},"comment":{"url":"https://api.github.com/repos/moff/angular2-flash-messages/issues/comments/291467066","html_url":"https://github.com/moff/angular2-flash-messages/issues/18#issuecomment-291467066","issue_url":"https://api.github.com/repos/moff/angular2-flash-messages/issues/18","id":291467066,"user":{"login":"tariq-mahmood-nxb","id":6916293,"avatar_url":"https://avatars0.githubusercontent.com/u/6916293?v=3","gravatar_id":"","url":"https://api.github.com/users/tariq-mahmood-nxb","html_url":"https://github.com/tariq-mahmood-nxb","followers_url":"https://api.github.com/users/tariq-mahmood-nxb/followers","following_url":"https://api.github.com/users/tariq-mahmood-nxb/following{/other_user}","gists_url":"https://api.github.com/users/tariq-mahmood-nxb/gists{/gist_id}","starred_url":"https://api.github.com/users/tariq-mahmood-nxb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariq-mahmood-nxb/subscriptions","organizations_url":"https://api.github.com/users/tariq-mahmood-nxb/orgs","repos_url":"https://api.github.com/users/tariq-mahmood-nxb/repos","events_url":"https://api.github.com/users/tariq-mahmood-nxb/events{/privacy}","received_events_url":"https://api.github.com/users/tariq-mahmood-nxb/received_events","type":"User","site_admin":false},"created_at":"2017-04-04T11:02:40Z","updated_at":"2017-04-04T11:02:40Z","body":"I was having the same issue, after fresh installation and I found that\r\n\r\nindex.d.ts is missing in new installs, just create the file in node_modules/angular2-flash-messages and add\r\nexport * from './module/index';"}}
{"actor":{"display_login":"tariq-mahmood-nxb"}}