userNew
1
Im trying to install the nodejs-sdk into my nextjs app (js environment not ts) but it failes cause of the absolute pathing
error - ./node_modules/@inworld/nodejs-sdk/build/src/auth/key_signature.js:4:0
Module not found: Can't resolve '@proto/ai/inworld/studio/v1alpha/tokens_grpc_pb'
I deleted my node_modules already and reinstalled.
@userNew Could you provide source code example?
@userNew Btw, how do you import package?
It works if you do it in the following way
const { InworldClient } = require('@inworld/nodejs-sdk');
userNew
4
Ah i misunderstood the SDK- Its only server sided
@userNew
For client side you can use this one @inworld/web-sdk - npm