I am having an angular 11 app. It throws a 500 internal server error on the route when I refresh the page. This started to happen when I remove the "canActivate" from the route. This only happens on deployed environment but not in local.
{
path: 'events/:EventName/speakers',
loadChildren: () =>
import('./views/pages/speakers/speakers.module').then(
(m) => m.SpeakersModule
),
resolve: [RouteResolver],
//commented out
// canActivate: [AuthGuardForEvent],
data: { pageId: ePageIds.Speaker },},