Backstage
    Preparing search index...
    • If there are any unrecoverable errors in the app, this will return an error page in the form of a JSX element.

      If there are any recoverable errors, they will always be logged as warnings in the console.

      Parameters

      • app: {
            errors?: (
                | {
                    code: "EXTENSION_IGNORED";
                    context: { extensionId: string; plugin: FrontendPlugin };
                    message: string;
                }
                | {
                    code: "INVALID_EXTENSION_CONFIG_KEY";
                    context: { extensionId: string };
                    message: string;
                }
                | {
                    code: "EXTENSION_INPUT_REDIRECT_CONFLICT";
                    context: { inputName: string; node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_INPUT_DATA_IGNORED";
                    context: { inputName: string; node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_INPUT_DATA_MISSING";
                    context: { inputName: string; node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_ATTACHMENT_CONFLICT";
                    context: { inputName: string; node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_ATTACHMENT_MISSING";
                    context: { inputName: string; node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_CONFIGURATION_INVALID";
                    context: { node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_INVALID";
                    context: { node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_OUTPUT_CONFLICT";
                    context: { dataRefId: string; node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_OUTPUT_MISSING";
                    context: { dataRefId: string; node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_OUTPUT_IGNORED";
                    context: { dataRefId: string; node: AppNode };
                    message: string;
                }
                | {
                    code: "EXTENSION_FACTORY_ERROR";
                    context: { node: AppNode };
                    message: string;
                }
                | {
                    code: "API_EXTENSION_INVALID";
                    context: { node: AppNode };
                    message: string;
                }
                | {
                    code: "ROUTE_DUPLICATE";
                    context: { routeId: string };
                    message: string;
                }
                | {
                    code: "ROUTE_BINDING_INVALID_VALUE";
                    context: { routeId: string };
                    message: string;
                }
                | {
                    code: "ROUTE_NOT_FOUND";
                    context: { routeId: string };
                    message: string;
                }
            )[];
        }
      • Optionaloptions: { warningCodes?: (keyof AppErrorTypes)[] }

      Returns Element | undefined