UNREACHABLE

An theoretical unreachable code path has been taken (eg, switch case fall through, if else block or similar), this is a sign of a greater underlying problem and should be reported to Nordcom AB ASAP so we can investigate it.

UnreachableErrorHTTP 500GenericErrorKind

Possible causes

  • This error should in theory never occur, please reach out to your Nordcom Commerce contact if you have the misfortune to experience it.

How it's thrown

@nordcom/commerce-errors
if (true) {
    return 'hello';
}

// This should be unreachable.
throw new UnreachableError();

Thrown from

packages/errors/src/index.ts:1180
* throw new UnreachableError();
View ↗
apps/storefront/src/api/shopify/collection/pagination.ts:124
throw new UnreachableError();
View ↗
apps/storefront/src/components/product-card/variant-registry.ts:62
throw new UnreachableError(`${label} variant registry has no "${fallbackName}" fallback registered`);
View ↗

On this page