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
I'm using a pretty basic vite vanilla typescript setup and [email protected] causes an interesting error:
error TS7016: Could not find a declaration file for module 'just-pipe'. 'C:/Users/.../node_modules/.pnpm/[email protected]/node_modules/just-pipe/index.mjs' implicitly has an 'any' type.
There are types at 'C:/Users/.../node_modules/just-pipe/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'just-pipe' library may need to update its package.json or typings.
The error goes away if I edit just-pipe's package.json to look like just-compose's:
Yeah you can see the issue on arethetypeswrong.github.io - looks like quite a few of these packages are published incorrectly. I'll try to make a PR at some point.
Hi, thanks, love the packages!
I'm using a pretty basic vite vanilla typescript setup and
[email protected]
causes an interesting error:The error goes away if I edit
just-pipe
'spackage.json
to look likejust-compose
's:"exports": { ".": { "require": "./index.js", "default": "./index.mjs", + "types": "./index.d.ts" } },
Here's my tsconfig.json if it helps.
I've always been quite confused about how to specify types in
package.json
but this one seems like a simple fix.The text was updated successfully, but these errors were encountered: