Skip to content

Cannot find name 'WeakKey'. #331

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

Open
saipraveen81 opened this issue Dec 18, 2024 · 2 comments
Open

Cannot find name 'WeakKey'. #331

saipraveen81 opened this issue Dec 18, 2024 · 2 comments

Comments

@saipraveen81
Copy link

Hi, I'm getting this error while running in the DevOps pipeline.

node_modules/idb/build/wrap-idb-value.d.ts:2:53 - error TS2304: Cannot find name 'WeakKey'.
2 export declare const reverseTransformCache: WeakMap<WeakKey, any>;

Please let us know how to resolve this issue

@rvCalance
Copy link

rvCalance commented Dec 18, 2024

We are also getting same issue while running devops pipeline, while it was working fine till 2 days back.
**Error: node_modules/idb/build/wrap-idb-value.d.ts:2:53 - error TS2304: Cannot find name 'WeakKey'.

2 export declare const reverseTransformCache: WeakMap<WeakKey, any>;**

we are using following version of IDB and typescript
"idb": "~8.0.0",
"typescript": "~4.8.2"

@jakearchibald
Copy link
Owner

Can someone make a minimal reproduction of this? Eg on a codesandbox or whatever

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants