Clarifai / clarifai-javascript

Official Clarifai JavaScript client for browsers and node.js
https://docs.clarifai.com
Other
351 stars 81 forks source link

i got error => Uncaught ReferenceError: process is not defined #58

Closed sherawat-Lokesh closed 1 year ago

sherawat-Lokesh commented 1 year ago

i try to use Clarifai in my react project .

const app = new Clarifai.App({ apiKey: "af5a54585af246268c4c47d1cb9bf816", });

app.models.predicct(Clarifai.FACE_DETECT_MODEL, this.state.input).then( function (response) { console.log(response); }, function (error) {} );

i got error : Uncaught ReferenceError: process is not defined

excaliburne commented 1 year ago

Hey,

We have deprecated this package few months ago, we advise using https://github.com/Clarifai/clarifai-nodejs-grpc or REST calls (see "Javascript (REST)" snippets in our docs, e.g https://docs.clarifai.com/api-guide/predict/images)