-
Notifications
You must be signed in to change notification settings - Fork 182
TypeError: Cannot read property 'ImageAnnotatorClient' of undefined #191
Comments
Greetings! I could be wrong, but I don't think you shouldn't need the |
When I remove .v1p3beta1. and try I get an error "TypeError: vision.ImageAnnotatorClient is not a constructor" |
Hi @JustinBeckwith, can you please suggest if this is a bug in vision api. |
I believe you just need to upgrade to the latest version of this library, which is currently With that version, this works for me: const vision = require('@google-cloud/vision')
const client = new vision.ImageAnnotatorClient() Please let me know if you still have issues after the upgrade. |
Hi @stephenplusplus , I just tried with the latest version, and facing new errors. Kindly suggest me if anything wrong in code. |
https://cloud.google.com/docs/authentication/getting-started#auth-cloud-implicit-nodejs has some good information about getting started with authorization. |
Thanks @stephenplusplus its working now. |
I'm new to nodejs, trying google handwriting text recognition. The error log and code is given below, please suggest me.
Environment details
@google-cloud/vision
version: 0.19.0Thanks!
The text was updated successfully, but these errors were encountered: