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

Published version 3.4.3 does not contain type definitions #440

Open
sandersn opened this issue Oct 5, 2021 · 1 comment
Open

Published version 3.4.3 does not contain type definitions #440

sandersn opened this issue Oct 5, 2021 · 1 comment

Comments

@sandersn
Copy link

sandersn commented Oct 5, 2021

Package.json doesn't have a "types" property anymore. There is a directory named types.d.ts/, but it's generated the same way as the other directories, and its package.json has pointers to non-existing files in ../cjs and ../esm. I don't think Typescript would be able to resolve types this way anyway (except maybe in TS 4.5 beta, which has some ESM support now).

@Danielmelody
Copy link
Contributor

I 've met the same issue.
According to this doc

Also note that if your main declaration file is named index.d.ts and lives at the root of the package (next to index.js) you do not need to mark the types property, though it is advisable to do so.

However there is neither index.js in the root nor types field defined in the published package.json file.

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

2 participants