MapleLeaf 🍁M
Denoβ€’14mo agoβ€’
2 replies
MapleLeaf 🍁

Duplicate package versions

I'm getting this TS error:
Type 'OAuthConfig<any>' is not assignable to type 'AuthProviderConfig'.
  Type 'OIDCConfig<any>' is not assignable to type 'AuthProviderConfig'.
    Type 'OIDCConfig<any>' is not assignable to type 'OIDCConfig<any> & InternalProviderOptions'.
      Type 'import("file:///home/maple/dev/tale-tapestry/$node_modules/.deno/@auth+core@0.37.4/$node_modules/@auth/core/providers/oauth").OIDCConfig<any>' is not assignable to type 'import("file:///home/maple/dev/tale-tapestry/$node_modules/.deno/@auth+core@0.36.0/$node_modules/@auth/core/providers/oauth").OIDCConfig<any>'.
        Types of property 'client' are incompatible.
          Type 'Partial<Client & { token_endpoint_auth_method: string; }> | undefined' is not assignable to type 'Partial<Client> | undefined'.
            Type 'Partial<Client & { token_endpoint_auth_method: string; }>' is not assignable to type 'Partial<Client>'.
              Types of property 'token_endpoint_auth_method' are incompatible.
                Type 'string | undefined' is not assignable to type 'ClientAuthenticationMethod | undefined'.
                  Type 'string' is not assignable to type 'ClientAuthenticationMethod | undefined'.deno-ts(2322)


(i assume) it's caused by two different versions of @auth/core, the old one, and the new one I just upgraded to via deno outdated --update --latest

in pnpm, I'd resolve this with pnpm dedupe, but I don't see an obvious way to do this with deno? I tried removing the deno.lock and
node_modules
and reinstalling, but I'm still getting the same issue :thinkspin:
Was this page helpful?