Skip to content

Add types to exports in package.json#1

Open
Joristdh wants to merge 1 commit intogeongeorge:mainfrom
Joristdh:patch-1
Open

Add types to exports in package.json#1
Joristdh wants to merge 1 commit intogeongeorge:mainfrom
Joristdh:patch-1

Conversation

@Joristdh
Copy link
Copy Markdown

When using your package in our (module) project, I get the following error:

Could not find a declaration file for module 'react-use-print'. '/node_modules/react-use-print/dist/react-use-print.es.js' implicitly has an 'any' type.
There are types at '/node_modules/react-use-print/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'react-use-print' library may need to update its package.json or typings.

This can be resolved by adding the typing information to the exports property in the package.json.

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.

1 participant