I have an angular application. I am hoisting it on the S3 bucket. I have specified the index and error document properly.
In the cloud front configurations, I have specified the error pages respectively.
My application is working error free, But I see the error printing in the browser console in production.
How do I resolve this ??? I am open to all solutions, Please guide me.
CodePudding user response:
Add RouterModule.forRoot(routes, { useHash: true }) in the app-routing module file. This will display a # in the route in the browser but resolved your issue.