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 aren't picked up properly by TS #34

Open
LinusOP opened this issue Oct 21, 2024 · 0 comments
Open

Types aren't picked up properly by TS #34

LinusOP opened this issue Oct 21, 2024 · 0 comments

Comments

@LinusOP
Copy link

LinusOP commented Oct 21, 2024

When trying to import from the package the types do not come through, and typescript gives us the following error:

There are types at '/path/to/node_modules/@devnote-dev/pterojs/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@devnote-dev/pterojs' library may need to update its package.json or typings.

Edit: I was about to open a PR regarding this issue but it doesn't seem so straight forward. There's a msimatch between the package.json in this repo and the one i see in my node_modules, is there some build step that changes it or is it just down to the last publish being so long ago (2 years) and so it only needs a new publish on NPM?

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

No branches or pull requests

1 participant