rxjs-spy icon indicating copy to clipboard operation
rxjs-spy copied to clipboard

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

Open zaripych opened this issue 1 year ago • 0 comments

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. 👍

zaripych avatar Apr 13 '23 10:04 zaripych