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

Bug: module augmentation fails due to how library publishes types #149

Open
4 tasks done
Thinkscape opened this issue Apr 23, 2024 · 0 comments
Open
4 tasks done
Assignees
Labels
bug Something isn't working

Comments

@Thinkscape
Copy link

Thinkscape commented Apr 23, 2024

Prerequisites

Describe the issue

Steps

In user panel, enable Settings -> Applications -> ... -> Tokens -> Access Token -> Organisation Name (string)
Then augment the module to add the missing property:

// i.e. src/types/kinde.d.ts
declare module "@kinde-oss/kinde-auth-nextjs" {
  export type KindeOrganization = {
    orgName: string | null;
  };
}

Expected

KindeOrganization should now contain both orgName and orgCode

Actual

The whole module is now broken, all imports are failing, i.e.

Module '"@kinde-oss/kinde-auth-nextjs"' has no exported member 'useKindeBrowserClient'.ts(2305)

Library URL

https://github.com/kinde-oss/kinde-auth-nextjs

Library version

2.2.3

Operating system(s)

macOS

Operating system version(s)

n/a

Further environment details

Next.js 14.2.2

Reproducible test case URL

No response

Additional information

No response

@Thinkscape Thinkscape added the bug Something isn't working label Apr 23, 2024
@DanielRivers DanielRivers self-assigned this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants