Skip to content

[Fix] Duplicate ErrorHandler providers detected #9106

@adkif

Description

@adkif

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 #9105 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions