ipfs / js-ipfs

IPFS implementation in JavaScript
https://js.ipfs.tech
Other
7.44k stars 1.25k forks source link

TypeError: PubsubRouter is not a constructor #4077

Closed FazioNico closed 2 years ago

FazioNico commented 2 years ago

Severity: Critical

Description: Unable to use ipfs-js from browser

Steps to reproduce the error: cerate blank js project and add:

import {create} from 'ipfs-core'
const ipfs = await create();

or download https://github.com/ipfs-examples/js-ipfs-examples and run project exemple from /examples/browser-angularfolder

will trow an error:

TypeError: PubsubRouter is not a constructor
achingbrain commented 2 years ago

Duplicate of #4066