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
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/compute']
});
Is not working, the runtime error is:
TypeError: google.auth.GoogleAuth is not a constructor
It's not clear how to solve this.
The text was updated successfully, but these errors were encountered:
@jlippold@q42jaap I have just confirmed that the following code works:
const{google}=require('googleapis');constauth=newgoogle.auth.GoogleAuth({// Scopes can be specified either as an array or as a single, space-delimited string.scopes: ['https://www.googleapis.com/auth/compute']});
On googleapis@42.0.0.
@jlippold try rm -rf node_modules; rm package-lock.json; npm i, and give the example code a shot.
If you're continuing to have issues, mind sharing a snippet of the code you're running?
The example code in the readme:
Is not working, the runtime error is:
It's not clear how to solve this.
The text was updated successfully, but these errors were encountered: