Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn build fails: Type 'OAuth2Client' is not assignable to type #207

Open
traumschule opened this issue Jun 26, 2023 · 0 comments
Open

yarn build fails: Type 'OAuth2Client' is not assignable to type #207

traumschule opened this issue Jun 26, 2023 · 0 comments

Comments

@traumschule
Copy link

youtube-synch$ yarn build
src/services/youtube/api.ts:90:37 - error TS2322: Type 'OAuth2Client' is not assignable to type 'string | GoogleAuth | OAuth2Client | BaseExternalAccountClient | undefined'.
  Type 'import("/home/l1media/youtube-synch/node_modules/google-auth-library/build/src/auth/oauth2client").OAuth2Client' is not assignable to type 'import("/home/l1media/youtube-synch/node_modules/googleapis-common/node_modules/google-auth-library/build/src/auth/oauth2client").OAuth2Client'.
    Types have separate declarations of a private property 'redirectUri'.

90     return new youtube_v3.Youtube({ auth })
                                       ~~~~

  node_modules/googleapis-common/build/src/api.d.ts:24:5
    24     auth?: GoogleAuth | OAuth2Client | BaseExternalAccountClient | string;
           ~~~~
    The expected type comes from property 'auth' which is declared here on type 'GlobalOptions'


Found 1 error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant