You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module is not shipping types for ESM modules:
$ ls -1 node_modules/streaming-iterables/dist/
index.d.ts
index.d.ts.map
index.js
index.mjs
When using this from ESM, I get:
error| Could not find a declaration file for module 'streaming-iterables'. 'dist/index.mjs' implicitly has an 'any' type.
There are types at 'dist/index.d.ts', but this result could not be resolved when respecting package.json "exports".
The 'streaming-iterables' library may need to update its package.json or typings.
This module is not shipping types for ESM modules:
When using this from ESM, I get:
This led me to microsoft/TypeScript#52363, where someone provided a nice checker: https://arethetypeswrong.github.io/[email protected]
The error message is a bit confusing IMO, but the issue seems to be that the provided types are only valid for the CJS build:
The text was updated successfully, but these errors were encountered: