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 am now migrating my project to typescript and i get this error that i can't figure out:
src/state/googleAnalytics/useGoogleAccounts.ts:22:21 - error TS2769: No overload matches this call.
Overload 1 of 2, '(options: UseGoogleLoginOptionsImplicitFlow): (overrideConfig?: OverridableTokenClientConfig | undefined) => void', gave the following error.
Type '"auth-code"' is not assignable to type '"implicit"'.
Overload 2 of 2, '(options: UseGoogleLoginOptionsAuthCodeFlow): () => void', gave the following error.
Object literal may only specify known properties, and 'accessType' does not exist in type 'UseGoogleLoginOptionsAuthCodeFlow'.
22 const onConnect = useGoogleLogin({
~~~~~~~~~~~~~~
../../node_modules/@react-oauth/google/dist/index.d.ts:360:5
360 flow?: 'implicit';
~~~~
The expected type comes from property 'flow' which is declared here on type 'UseGoogleLoginOptionsImplicitFlow'
I have been using this code, and it works, for a long time.
I am now migrating my project to typescript and i get this error that i can't figure out:
It still works, if i use //@ts-ignore.
Not sure how to get past this.
The text was updated successfully, but these errors were encountered: