Ipfs-http-client doesn't work in the browser with Meteor


I’m having troubles using the latest version of ipfs-http-client with Meteor on the client.
It fails with TypeError: Cannot read property 'native' of undefined which is happening in this piece of code:

if (typeof fs.realpath.native === 'function') {

This is from fs-extra package, which is a dependency of ipfs-utils which is a dependency of ipfs-http-client.

The latest working version is ipfs-http-client@41.0.1

Would appreciate any help.