This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
Can't get it to work in an ionic project - possibly typescript related? #240
Labels
api: vision
Issues related to the googleapis/nodejs-vision API.
🚨
This issue needs some love.
triage me
I really want to be triaged.
web
Hi,
I am trying to test this in a simple ionic project, but as soon as I include in a project it fails with:
TypeError: Cannot read property 'prototype' of undefined
at patch (http://localhost:8100/build/vendor.js:230900:54)
at Object. (http://localhost:8100/build/vendor.js:230761:18)
at Object. (http://localhost:8100/build/vendor.js:230998:30)
at webpack_require (http://localhost:8100/build/vendor.js:55:30)
at Object. (http://localhost:8100/build/vendor.js:230701:10)
at webpack_require (http://localhost:8100/build/vendor.js:55:30)
at Object.module.exports (http://localhost:8100/build/vendor.js:230633:18)
at webpack_require (http://localhost:8100/build/vendor.js:55:30)
at Object.module.exports (http://localhost:8100/build/vendor.js:148017:17)
at webpack_require (http://localhost:8100/build/vendor.js:55:30)
Environment details
@google-cloud/vision
version: v0.22.1Steps to reproduce
0 . install ionic/cordova: $ npm install -g ionic cordova
// Imports the Google Cloud client library
import vision from '@google-cloud/vision'; // or require depending on typescript version
const client = new vision.ImageAnnotatorClient();
I am not an expert in any way but this gets me stuck wanting to try it out with using HTTP calls myself as I have seen others doing in ionic projects.
Thanks!
Robert
The text was updated successfully, but these errors were encountered: