#'router-outlet' is not a known element

2 messages · Page 1 of 1 (latest)

delicate glade
#

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

  1. I created a module file called PrimeModule that basically contains all the prime library ui components
  2. I imported PrimeModule into my app.module.ts
  3. 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:

  1. import router module, I already have RouterModule imported & exported in app-routing.module.ts
  2. import RouterModule & AppRouterModule into app.module.ts, they're already there.
  3. clear cache
  4. restart vs code
unreal thicket
#

'router-outlet' is not a known element issue coming from app-component ? or some other component is using router-outlet as well