getFilesFromPath works in Javascript but not in Typescript #830
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
My code looks like:
This code works in Node.js but when I migrated to Typescript
Following error comes out when I compile Typescript into CommonJS
I've done some researches and it's apparently not helping me at all:
whatwg/streams#778
microsoft/TypeScript#39051
I don't even know whether this is a Typescript bug or not.
My tsconfig.json
I really need help, thks.
Update 1
I mirgrated the code from
https://github.com/web3-storage/files-from-path/blob/main/src/index.js#L32
like this
Surprisingly it works, still don't know why.
The text was updated successfully, but these errors were encountered: