Reputation: 1765
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.
I've googled to no avail. Somebody help me with this, please!
Thanks
Upvotes: 0
Views: 382
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