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 to package.json exports mapping #444

Merged
merged 3 commits into from
May 3, 2023
Merged

Add types to package.json exports mapping #444

merged 3 commits into from
May 3, 2023

Conversation

jhirvioja
Copy link
Contributor

@jhirvioja jhirvioja commented Apr 30, 2023

Currently, preact-router errors when in TypeScripts config the moduleResolution is "bundler", "Node16" or "NodeNext". See example of error message here: #443

One proposed fix is to include types in the package.json's exports mapping. See example here: #429

This proposed fix is implemented in this pull request. If this is not a reasonable fix, some other fix should be introduced.

Related: microsoft/TypeScript#52363

package.json Outdated Show resolved Hide resolved
@rschristian
Copy link
Member

Thanks!

@rschristian rschristian merged commit f558b75 into preactjs:main May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants