The graphql implementation for "slice type" just uses "type" which causes an issue with v2 of @prismicio/react SliceZone component. It's looking for the property slice_type. This results in components never being found.
@prismicio/react/src/SliceZone.tsx
/**
* The minimum required properties to represent a Prismic Slice for the
* `<SliceZone>` component.
*
* If using Prismic's REST API, use the `Slice` export from `@prismicio/types`
* for a full interface.
*
* @typeParam SliceType - Type name of the Slice.
*/
export type SliceLike<SliceType extends string = string> = Pick<
prismicT.Slice<SliceType>,
"slice_type"
>;
Reference Example:
slices {
__typename
... on WorkDetailSlicesWork_detail_intro {
type
variation {
__typename
... on WorkDetailSlicesWork_detail_introDefault {
primary {
title
description
services
results
}
}
}
}
}