i\'m upgrading my Angular 2 project from RC5 to 2.0.0. I get this Error
Unhandled Promise rejection: Component LoginComponent is not part of any NgM
In My case, the problem was with the capitalization difference in app.routing.ts
and app.module.ts
. We need to make sure we have the same path with the same case specified in both the locations.
app.routing.ts => import { HomeComponent } from './components/home.component';
app.module.ts => import { HomeComponent } from './Components/home.component'
app.routing.ts => import { HomeComponent } from './Components/home.component';
app.module.ts => import { HomeComponent } from './Components/home.component'
Note, the change in case of folder named "Components"