Packages that declare themselves as ES modules ("type": "module" in package.json) that also include an exports property must declare a types property otherwise Typescript cannot find the types when typescripts "moduleResolution": "bundler" is set. Checking against are the types wrong asserts that types cannot be found for anything above node10. An example of the error can be seen below:
Packages that declare themselves as ES modules (
"type": "module"
in package.json) that also include anexports
property must declare atypes
property otherwise Typescript cannot find the types when typescripts"moduleResolution": "bundler"
is set. Checking against are the types wrong asserts that types cannot be found for anything above node10. An example of the error can be seen below: