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

fix: Publish missing types declaration file #80

Merged
merged 1 commit into from Apr 3, 2024

Conversation

ffflorian
Copy link
Contributor

Hi,

when using parse-url with a ESModule project, TypeScript cannot build the project, displaying the following error:

Could not find a declaration file for module 'parse-url'. '[...]/node_modules/parse-url/dist/index.mjs' implicitly has an 'any' type.
  There are types at '[...]/node_modules/parse-url/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'parse-url' library may need to update its package.json or typings.ts(7016)

This PR fixes the error by telling npm to publish the missing index.d.mts file.

@IonicaBizau IonicaBizau mentioned this pull request Apr 3, 2024
@IonicaBizau IonicaBizau merged commit 482c8fa into IonicaBizau:master Apr 3, 2024
3 checks passed
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 this pull request may close these issues.

None yet

2 participants