js-dag-service icon indicating copy to clipboard operation
js-dag-service copied to clipboard

React-Native support

Open sleep9 opened this issue 1 year ago • 0 comments

Describe the bug Uncaught Error Cannot read property '__extends' of undefined

To Reproduce Setup a RN project with rn-nodeify with following post-install script "postinstall": "rn-nodeify --install events,dgram --hack" rm -rf ./node_modules npm install cd ios pod deintegrate pod install

import { BlockStore,Peer } from '@textile/ipfs-lite'
import { MemoryDatastore } from '@textile/ipfs-lite/dist/setup/index.js';

const store = new BlockStore(new MemoryDatastore()); <-- error
const lite = new Peer(store, host);
await lite.start()

Expected behavior

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • iOS 17.0

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: iOS 17.0

Additional context Add any other context about the problem here.

sleep9 avatar Mar 01 '24 23:03 sleep9