cartant / rxjs-spy

A debugging library for RxJS
https://cartant.github.io/rxjs-spy/
MIT License
702 stars 22 forks source link

No .d.ts types in esm directory of the package makes TypeScript fail to import rxjs-spy #66

Open zaripych opened 1 year ago

zaripych commented 1 year ago

I'm using ESM modules and moduleResolution equal to bundler in my tsconfig.json. This is quite edge and only available in the latest version of the TypeScript.

image

The issue this brings for me in my codebase:

image

The solution is to add types section in package.json:

image

Adding index.d.ts to esm folder with export * from '../cjs' also works. 👍