EoRaptor013
EoRaptor013

Reputation: 1765

Open Angular Web Page app-root can't be found

VS 2019, building an AspNet Core application including Angular project. Using ng build, the client app compiles without errors. But, when I navigate to the page I get an error that "app-root" did not match.

enter image description here

I've googled to no avail. Somebody help me with this, please!

Thanks

Upvotes: 0

Views: 382

Answers (1)

N.F.
N.F.

Reputation: 4202

I guess your index.html does not have app-root. Check your index.html has this element.

index.html

<body>
  <app-root></app-root>   <!-- check your index.html has this line. -->
</body>

Upvotes: 1

Related Questions