Angular routing after ng build

Viewed 80

I'm getting an error: "Cannot GET /main" when I access this address: "http://localhost/main" I attach pictures of my code after ng build

I moved the created folder (named client) after ng build to the server

I hope you can help me Thank you my code

2 Answers

Could you share a picture of the main.component.ts please. The error occurs because it cannot find Maincomponent

enter image description here

I reckon the error comes because you have mispelt the main.components export.

Related