Property '#private' in type 'SanityClient'
spacedawwwg opened this issue · 2 comments
spacedawwwg commented
Argument of type 'import("/project/node_modules/@sanity/types/node_modules/@sanity/client/dist/index").SanityClient' is not assignable to parameter of type 'import("/project/node_modules/@sanity/client/dist/index").SanityClient'.
Property '#private' in type 'SanityClient' refers to a different member that cannot be accessed from within type 'SanityClient'
Occurs when using useClient({ apiVersion: '2022-03-13' })
for a value against import type { SanityClient } from '@sanity/client';
Expected
SanityClient type should be accessible
wimbarelds commented
We are also having this issue since our npm updates this week.
stipsan commented
This will be resolved with the next release of sanity
: sanity-io/sanity#4454