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

Add types field to package.json to fix type declarations resolution #185

Conversation

alexanderkasten
Copy link

After updating from v10.2.0 to v11.0.2 I get the error:

Bildschirmfoto 2023-10-17 um 14 33 21

This PR fixes this bug by adding the types field in the package.json. This allows VSCode/TS to find the declaration files.

Bildschirmaufnahme.2023-10-17.um.14.33.45.mov

@sindresorhus
Copy link
Owner

The problem is the tool you are using, not conf. conf defines the type path in the exports property, which is a standard way to do it.

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.

2 participants