pinecone-ts-client icon indicating copy to clipboard operation
pinecone-ts-client copied to clipboard

[Bug] issue with deps `@sinclair+typebox`

Open nicolasburtey opened this issue 1 year ago • 2 comments

Is this a new bug?

  • [X] I believe this is a new bug
  • [X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

can you update @sinclair+typebox

current version has issue I'm running into

../../node_modules/.pnpm/@[email protected]/node_modules/@sinclair/typebox/typebox.d.ts:179:306 - error TS2589: Type instantiation is excessively deep and possibly infinite.

179 export type TIndex<T extends TSchema, K extends Key[]> = T extends TRecursive<infer S> ? TIndex<S, K> : T extends TIntersect ? UnionType<Flat<TIndexRestMany<T, K>>> : T extends TUnion ? UnionType<Flat<TIndexRestMany<T, K>>> : T extends TObject ? UnionType<Flat<TIndexRestMany<T, K>>> : T extends TTuple ? UnionType<Flat<TIndexRestMany<T, K>>> : TNever;

documented here https://github.com/sinclairzx81/typebox/issues/737

Expected Behavior

pass typescript check

Steps To Reproduce

Relevant log output

No response

Environment

- **OS**:
- **Language version**:
- **Pinecone client version**:

Additional Context

No response

nicolasburtey avatar Apr 17 '24 21:04 nicolasburtey

Not much to add.. also seeing this issue.

guinaut avatar May 08 '24 18:05 guinaut

I've resolved this by overriding the dependency to the latest (0.32.30 at the time of writing). For pnpm, top level in package.json:

  "pnpm": {
    "overrides": {
      "@pinecone-database/pinecone>@sinclair/typebox": "0.32.30"
    }
  }

Typescript version 5.4.5

hstanford avatar May 17 '24 11:05 hstanford

Hi all, closing out this issue as it seems to have been resolved. Please feel free to reopen if needed.

anawishnoff avatar Aug 06 '24 14:08 anawishnoff