Describe your question/issue in detail
- I am encountering error, when I removed
enableAutoPreviews({ client });
from theprismicio.ts
Type error: No overload matches this call.
Overload 1 of 2, '(repositoryNameOrEndpoint: string, options?: ClientConfig | undefined): Client<AllDocumentTypes>', gave the following error.
Type '{ tags: string[]; cache: "force-cache"; } | { next: { revalidate: number; }; }' is not assignable to type 'RequestInitLike | undefined'.
Type '{ tags: string[]; cache: "force-cache"; }' is not assignable to type 'RequestInitLike'.
Object literal may only specify known properties, and 'tags' does not exist in type 'RequestInitLike'.
Overload 2 of 2, '(repositoryNameOrEndpoint: string, options?: ClientConfig | undefined): Client<PrismicDocument<Record<string, any>, string, string>>', gave the following error.
Type '{ tags: string[]; cache: "force-cache"; } | { next: { revalidate: number; }; }' is not assignable to type 'RequestInitLike | undefined'.
Type '{ tags: string[]; cache: "force-cache"; }' is not assignable to type 'RequestInitLike'.
Object literal may only specify known properties, and 'tags' does not exist in type 'RequestInitLike'.
Impacted feature
Build Error
What steps have you taken to resolve this issue already?
- Removed
enableAutoPreviews({ client });