-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I keep getting this error: index.js:8 Uncaught ReferenceError: global is not defined
at node_modules/clarifai/dist/index.js (index.js:8:18)
at __require (chunk-76J2PTFD.js?v=2e44a6bf:3:50)
at index.js:31:1
and I have contacted Clarifai support team, but they were not very helpful.
additionally on this line of code: import Clarifai from "clarifai"; on the App.js I get this message:
module "/Users/userId/face-detect/node_modules/clarifai/dist/index"
Could not find a declaration file for module 'clarifai'. '/Users/userId/face-detect/node_modules/clarifai/dist/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/clarifai if it exists or add a new declaration (.d.ts) file containing declare module 'clarifai';ts(7016)
and when I try npm i --save-dev @types/clarifa I get a bunch of other errors:
Not Found - GET https://registry.npmjs.org/@types%2fclarifai - Not found
npm ERR! 404
npm ERR! 404 '@types/clarifai@*' is not in this registry.
if anyone here can provide any help or feedback on this issue that would be great.