js-ipfs-utils icon indicating copy to clipboard operation
js-ipfs-utils copied to clipboard

TypeScript declarations broken in 9.0.4

Open grzegorzjudas opened this issue 3 years ago • 5 comments

Hello,

after recent clean install of project dependencies (after removal of package-lock) we stumbled upon a build failure:

node_modules/ipfs-utils/dist/src/files/glob-source.d.ts:10:14 - error TS2503: Cannot find namespace 'fs'.

10     content: fs.ReadStream | undefined;

After examining the contents of that file, it looks like the fs has no reference. It worked in 9.0.2, so I downgraded and found that there's a missing part at the top:

/// <reference types="node" />

that causes the build to fail.

I'm not too sure what changed between the versions, but the downgrade definitely did the trick.

grzegorzjudas avatar Jan 17 '22 10:01 grzegorzjudas