Google-api-javascript-client: Property 'auth2' does not exist on type 'typeof gapi'.

Created on 22 Nov 2019  路  3Comments  路  Source: google/google-api-javascript-client

Most helpful comment

For those who might have the same problem as me, make sure you add @types/gapi.auth2 to your devDependencies. This should be in the doc though.

All 3 comments

For those who might have the same problem as me, make sure you add @types/gapi.auth2 to your devDependencies. This should be in the doc though.

I also had to add in this to my tsconfig.json

{
  "compilerOptions": {
    "types": ["gapi", "gapi.auth2"]
  }
}

Seems like, until now it isn't on docs?

Was this page helpful?
0 / 5 - 0 ratings