React-Native support
- Dominant language
- TypeScript
- Stars
- 95
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
**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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the error in a React Native project using the shown rn-nodeify post-install steps, then trace the imported BlockStore and MemoryDatastore entry points from @textile/ipfs-lite. Confirm the failure at new BlockStore(new MemoryDatastore()) and define completion as successful initialization on iOS without the __extends error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100