ipfs / helia

An implementation of IPFS in JavaScript
https://helia.io
Other
916 stars 95 forks source link

Creating Helia in nextjs fails with "TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<Bootstrap>'" #424

Closed ianconsolata closed 6 months ago

ianconsolata commented 7 months ago

This error happened in both Typescript and Javascript. Screenshot 2024-02-08 at 2 20 34 PM.

I am using the sample code from the Helia examples repo in a different project. When I tried to run the example repo directly, I got a different error: https://github.com/ipfs-examples/helia-examples/issues/289

ianconsolata commented 7 months ago

I just reran my sample repo, and downgrading to 14.0.4 resolved the issue for me. Sounds like this issue and https://github.com/ipfs-examples/helia-examples/issues/289 might have the same root cause.

achingbrain commented 6 months ago

Nextjs had a regression but it was fixed in v14.1.3.

Please reopen this issue if you are still having problems.