Hi, I installed tfjs and handpose, but it’s giving me this err:
Error: node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:18:23 - error TS4090: Conflicting definitions for '@webgpu/types/dist' found
There is a dependency conflict, in package.lock.json I have this in one place
and this in another one
My conclusion is that it’s Tensorflow.Js’s problem, because just by installing tfjs and tfjs-models/handpose, there’s already a problem with dependencies. Please, someone who’s experienced, tell me the solution
March 13, 2023, 6:30pm
@Matthew_Soulanille Any ideas why WebGPU errors would be coming in Node?
May be related to other recent posts on this subject too eg:
Hi, I am trying to use TfJs & HandPose for a couple days and JUST CAN’T. TfJs, TfJs Core, webGpu and TfJs-HandPose just can’t work together. There’s dependency hell going on, even after resolving everything somehow, I was getting errors when installing ngx-webcam for example.
Couldn’t do anything but give up.
I wouldn’t try resolving it for days, if it wasn’t a great tool, obviously, TfJs is amazing, but if the devs could work more on making TfJs and its models easier to install & use, it wou…
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…