I’m trying to use the Google Cloud Vision API Node client.
Following the instructions here, whenever I try to insert just this line of code const vision = require('@google-cloud/vision');
on a server file, I get this error:
When I try to enter that require on a client file, the app builds succesfully, but this error shows on the client console:
Uncaught TypeError: existsSync is not a function
at Object.exports.find (modules.js?hash=ed68e45…:168248)
at grpc_extension.js (modules.js?hash=ed68e45…:165948)
at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
at require (modules-runtime.js?hash=8587d18…:238)
at client.js (modules.js?hash=ed68e45…:164980)
at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
at require (modules-runtime.js?hash=8587d18…:238)
at index.js (modules.js?hash=ed68e45…:164691)
at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
at require (modules-runtime.js?hash=8587d18…:238)
Meteor version: 1.5.1
Npm version: 5.3.0
Node version: 6.11.1
System: Windows 10
Please help me fix this issue, or begin to understand what might be the problem here.
Thanks in advance,