hey,
I literally tried everything I found online and it's not working
here's what I did that caused this issue to happen:
I had a newly created project
- I created a module file called PrimeModule that basically contains all the prime library ui components
- I imported PrimeModule into my app.module.ts
- I added a new component then it complained that 2 modules exist and I should specify the comoponent, I then specified the module with --module command and they were created successfully.
then suddenly my app.component.html file which has the <router-outlet> suddenly started complaining with this issue.
here's what I did to try fix it:
- import router module, I already have RouterModule imported & exported in app-routing.module.ts
- import RouterModule & AppRouterModule into app.module.ts, they're already there.
- clear cache
- restart vs code