Ipfs.pubsub.publish is broken?

package
ipfs-core: 0.18.0

Is there something wrong with me?

macOS safari

TypeError: undefined is not an object (evaluating '_message_rpc_js__WEBPACK_IMPORTED_MODULE_6__.RPC.Message'

macOS google chrome

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Message')

I am not familiar with Webpack, is this issue IPFS or Webpack?.. or am i…?
Can someone please help me?

I’m not sure why you’re getting the error you’re getting, but if you’re trying to publish to IPNS in a browser, I’d recommend against that for the time being. I don’t believe js-ipfs has full DHT support in the browser, and it’ll likely be quite challenging to resolve that.

1 Like