The TypeScript 4.7 NodeNext module resolver does not honor the legacy types property in the package.json file. You need to add a types export condition as described here.
Note that the "types" condition should always come first in "exports".
With this change, your package.json exports should look something like:
The TypeScript 4.7
NodeNext
module resolver does not honor the legacytypes
property in thepackage.json
file. You need to add atypes
export condition as described here.With this change, your
package.json
exports should look something like: