Cannot find name 'WeakKey'.
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
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"
Can someone make a minimal reproduction of this? Eg on a codesandbox or whatever
I also got this error and i need to manually change WeakKey to any to resolve the issue, can anyone resolve the issue.
"idb": "^8.0.2",
Can someone make a minimal reproduction of this? Eg on a codesandbox or whatever
Have to upgrade to at least TS 5.2 and then you get WeakKey