ever-gauzy icon indicating copy to clipboard operation
ever-gauzy copied to clipboard

[Fix] Duplicate ErrorHandler providers detected

Open adkif opened this issue 7 months ago • 1 comments

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 avatar Aug 28 '25 18:08 adkif

@adkif it also find there in that same PR more issues, will you create one issue for each or post here all of them?

evereq avatar Aug 28 '25 19:08 evereq