Skip to content

Random TS errors for createAuth and authClient #116

@dragidavid

Description

@dragidavid

Sorry if this was reported already but I came across 2 stubborn and possibly false positive TS errors while setting up better auth with convex.

Basically if you follow this official setup guide, at step 5 and 6, when you define createAuth and the authClient TS throws the following errors.

The inferred type of 'authClient' cannot be named without a reference to '.pnpm/[email protected]/node_modules/jose'. This is likely not portable. A type annotation is necessary.ts(2742)
The inferred type of 'createAuth' cannot be named without a reference to '.pnpm/[email protected]/node_modules/jose'. This is likely not portable. A type annotation is necessary.ts(2742)

To reproduce, just follow the steps here.

Version: 0.8.6 and also 0.8.8 (latest)
Better Auth version is what is recommended: 1.3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions