Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(package.json): add exports.types to package.json #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SirbyAlive
Copy link

add explicit exports.types declaration for typing support in package.json

Fix error ts7016 appearing when importing the library in project.

Error reads:

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

add explicit exports entry for typings in package.json
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants