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

Types not correctly exported in package.json #116

Closed
MDransfeld opened this issue Sep 8, 2023 · 3 comments · Fixed by #121
Closed

Types not correctly exported in package.json #116

MDransfeld opened this issue Sep 8, 2023 · 3 comments · Fixed by #121

Comments

@MDransfeld
Copy link

This error occurs when trying to import in a Typescript project:

image

Seems to be fixed by added "types" to the export in the package.json:

image

@github-actions
Copy link

github-actions bot commented Sep 8, 2023

Hey, @MDransfeld. Thank you so much for taking the time to point this out

@nramirez-oa
Copy link

nramirez-oa commented Sep 10, 2023

Hi! Any plans to fix this issue? :)

I temporarily fixed this by adding the path to the tsconfig file like this:

{
  "compilerOptions": {
    "paths": {
      "react-router-prompt": ["node_modules/react-router-prompt/dist/index.d.ts"]
    }
  },
}

@sshyam-gupta
Copy link
Owner

Thanks @sweethuman for the PR. I will take a look at it shortly.

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

Successfully merging a pull request may close this issue.

3 participants