Hi, I’m trying to install Tensorflow.JS with its HandPose model, like this:
npm i @tensorflow/tfjs @tensorflow-models/handpose
It has no problem, they’re installed, but then I get this:
Error: node_modules/@tensorflow/tfjs-core/dist/hash_util.d.ts:2:49 - error TS2304: Cannot find name 'Long'.
2 export declare function hexToLong(hex: string): Long;
~~~~
Error: node_modules/@tensorflow/tfjs-core/dist/hash_util.d.ts:3:69 - error TS2304: Cannot find name 'Long'.
3 export declare function fingerPrint64(s: Uint8Array, len?: number): Long;
~~~~
Error: node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:18:23 - error TS4090: Conflicting definitions for '@webgpu/types/dist' found
Error: node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/hash_util.d.ts:2:49 - error TS2304: Cannot find name 'Long'.
2 export declare function hexToLong(hex: string): Long;
~~~~
The type: Long problem, I fix it by setting it to type any by hand, but the
Conflicting definitions for '@webgpu/types/dist' found
error, I just can’t fix that. Is there someone who can help?
PLEASE.
Thank you.