You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using node version 8.5.0 on windows and I'm getting the following error on this line:
var google = require('googleapis');
const transporter = new DefaultTransporter();
^
TypeError: DefaultTransporter is not a constructor
at Object.<anonymous> (***\node_modules\googleapis\lib\discovery.js:23:21)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (***\node_modules\googleapis\lib\googleapis.js:17:21)
at Module._compile (module.js:624:30)
It should work if you use v0.10.0 of the google-auth-library instead of v0.11.0. It seems that this library is not yet compatible with v0.11.0, I submitted a PR to fix this.
I'm using node version 8.5.0 on windows and I'm getting the following error on this line:
var google = require('googleapis');
I'm using:
How can I solve this?
Thanks!
The text was updated successfully, but these errors were encountered: