Alex Potsides

Results 539 comments of Alex Potsides

Your tsconfig is [set to output CJS](https://github.com/rawatnaresh/firebase-functions-ipfs/blob/main/functions/tsconfig.json#L3) - it needs to output ESM instead. Add `"type": "module"` to your `package.json`, and in `tsconfig.json` change `"module"` to `"ES2020"` and add `"moduleResolution":...

@CorpulentBrony sorry it wasn't clear - I was replying to the OP, who has supplied a repro case that needs an update to it's `tsconfig.json` for it to work. If...

@hubsmoke this almost works but the `npm run build` command in your repo fails. To get it to work set target and module to `"es2020"` and remove `"lib"`: ```json {...

There's more info in the [upgrade guide](https://github.com/ipfs/js-ipfs/blob/master/docs/upgrading/v0.62-v0.63.md#typescript-and-esm)

IPFS is all ESM since `[email protected]` so this should be fixed now. Please open a new issue if you are still having problems.

Just needs conflicts sorting out

Stardust never happened, the WebRTC transport will be this one: https://github.com/little-bear-labs/js-libp2p-webrtc

Thanks for opening this PR but I'm going to close it as it does not address the underlying issue: > I'm currently using an ESM-focused bundler (Vite) and importing the...

Closing this as it's largely been done. The exception is the CID class but there's further discussion in the multiformats repo. See: https://github.com/multiformats/js-multiformats/issues/203