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.
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
if (true) {
return 'hello';
}
// This should be unreachable.
throw new UnreachableError();Thrown from
packages/errors/src/index.ts:1180
* throw new UnreachableError();apps/storefront/src/api/shopify/collection/pagination.ts:124
throw new UnreachableError();apps/storefront/src/components/product-card/variant-registry.ts:62
throw new UnreachableError(`${label} variant registry has no "${fallbackName}" fallback registered`);Related errors
NOT_FOUND
GENERIC_TODO
GENERIC_UNKNOWN_ERROR
INVALID_TYPE
MISSING_CONTEXT_PROVIDER
NOT_CONNECTED_TO_DATABASE
Stable help URL:https://docs.nordcom.io/errors/unreachable/
Edit on GitHub ↗