Closed jhirvioja closed 1 year ago
Currently, preact-router errors when in TypeScripts config the moduleResolution is "bundler", "Node16" or "NodeNext". See example of error message here: https://github.com/preactjs/preact-router/issues/443
One proposed fix is to include types in the package.json's exports mapping. See example here: https://github.com/preactjs/preact-router/issues/429
This proposed fix is implemented in this pull request. If this is not a reasonable fix, some other fix should be introduced.
Related: https://github.com/microsoft/TypeScript/issues/52363
Thanks!
Currently, preact-router errors when in TypeScripts config the moduleResolution is "bundler", "Node16" or "NodeNext". See example of error message here: https://github.com/preactjs/preact-router/issues/443
One proposed fix is to include types in the package.json's exports mapping. See example here: https://github.com/preactjs/preact-router/issues/429
This proposed fix is implemented in this pull request. If this is not a reasonable fix, some other fix should be introduced.
Related: https://github.com/microsoft/TypeScript/issues/52363