I had the same problem as switching from RC5 to Final, and it took me a bit to find my answer. Finally, I found my answer after I remembered that I was receiving warning messages. "The NgModule AppModule uses the LoginComponent through the" LoginComponent ", but it was neither advertised nor imported! This warning will be an error after the final." When I finally looked at this error message, I found my answer, which may be similar to yours. I found my answer here .
In this post, I was told that in my app.module.ts file, I stated that my components are as follows:
app.module:
import { AccountComponent, AccountDetails } from './account/index'; import { LoginComponent, ResetPasswordComponent } from './login/index';
But in my routes file there was the following:
import { AccountComponent, AccountDetails } from './account/index'; import { LoginComponent, ResetPasswordComponent } from './login/index';
Thus, the routes think that it loads another component and then the module due to differences in capitalization, which means that those that pull into the routes do not match the module.
Hope this helps.
Joe W Sep 17 '16 at 21:41 2016-09-17 21:41
source share