Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property '#private' in type 'SanityClient' #182

Closed
spacedawwwg opened this issue Mar 29, 2023 · 2 comments
Closed

Property '#private' in type 'SanityClient' #182

spacedawwwg opened this issue Mar 29, 2023 · 2 comments

Comments

@spacedawwwg
Copy link

spacedawwwg commented Mar 29, 2023

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
Copy link

We are also having this issue since our npm updates this week.

@stipsan
Copy link
Member

stipsan commented May 15, 2023

This will be resolved with the next release of sanity: sanity-io/sanity#4454

@stipsan stipsan closed this as completed May 15, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants