ever-gauzy
ever-gauzy copied to clipboard
[Fix] Duplicate ErrorHandler providers detected
logic: Duplicate ErrorHandler providers detected. Angular will use the last provider, meaning ErrorHandlerService on line 182 will be overridden by Sentry.createErrorHandler on line 195. This could cause unexpected error handling behavior.
{
provide: ErrorHandler,
useValue: Sentry.createErrorHandler({
showDialog: true
})
},
provideAppInitializer(() => {
const initializerFn = (serverConnectionFactory)(
inject(ServerConnectionService),
inject(Store),
inject(Router),
inject(Injector)
);
return initializerFn();
}),
Originally posted by @greptile-apps[bot] in https://github.com/ever-co/ever-gauzy/pull/9105#discussion_r2308197506
@adkif it also find there in that same PR more issues, will you create one issue for each or post here all of them?