Skip to content

Commit

Permalink
Added troubleshooting example (#7009)
Browse files Browse the repository at this point in the history
* added troubleshooting example

* added guide
  • Loading branch information
SantiagoDevRel committed May 6, 2024
1 parent 88b7e2e commit c62ef79
Showing 1 changed file with 42 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,54 @@
---
sidebar_position: 16
sidebar_label: '📚 Resources'
sidebar_label: '📚 Resources & Troubleshooting'
---
# Resources
# Resources & Troubleshooting

## [Web3.js v4 course](https://www.youtube.com/watch?v=3ZO_t-Kyr1g&list=PLPn3rQCo3XrP4LbQcOyyHQR8McV7w3HZT)
## Troubleshooting

### ReferenceError: Can't find variable: BigInt using React

Occasionally, users encounter errors in web3.js due to external dependencies, which may seem challenging to resolve within the web3.js framework alone.

**Resolution Steps:**

1. Install `rn-nodeify` as a development dependency:
```bash
yarn add --dev rn-nodeify
```

2. Add the `big-integer` package:
```bash
yarn add big-integer
```

3. Create a file named `shim.js` at the root of your project and include the following polyfill:
```ts
if (typeof BigInt === 'undefined') {
global.BigInt = require('big-integer');
}
```

4. Import shim.js at the top of your App.js:
```ts
// Make sure you use `import` and not `require`!
import './shim.js'
```

Additional Info:

[Facebook/React-native Issue #28492](https://github.com/facebook/react-native/issues/28492#issuecomment-824698934)

## Resources

### [Web3.js v4 course](https://www.youtube.com/watch?v=3ZO_t-Kyr1g&list=PLPn3rQCo3XrP4LbQcOyyHQR8McV7w3HZT)

This comprehensive 14-part video course from ChainSafe equips you with the skills to conquer the blockchain using web3.js v4. Unlock the potential of web3.js v4 and build cutting-edge dApps. This course caters to all skill levels.

[![Web3.js v4 course](https://img.youtube.com/vi/3ZO_t-Kyr1g/0.jpg)](https://www.youtube.com/watch?v=3ZO_t-Kyr1g&list=PLPn3rQCo3XrP4LbQcOyyHQR8McV7w3HZT)


## [Web3.js series](https://www.youtube.com/watch?v=BQ_bDH91S4k&list=PLPn3rQCo3XrNf__8irs4-MjMt4fJqW2I_)
### [Web3.js series](https://www.youtube.com/watch?v=BQ_bDH91S4k&list=PLPn3rQCo3XrNf__8irs4-MjMt4fJqW2I_)

This series of 3 videos takes you on a journey through web3.js. Whether you're a complete beginner or want to refine your skills, these videos have something for you:

Expand All @@ -23,6 +60,6 @@ This series of 3 videos takes you on a journey through web3.js. Whether you're a

[![Web3.js series](https://img.youtube.com/vi/BQ_bDH91S4k/0.jpg)](https://www.youtube.com/watch?v=BQ_bDH91S4k&list=PLPn3rQCo3XrNf__8irs4-MjMt4fJqW2I_)

## Hackathons
## Hackathons and Bounties

You'll find the latest hackathons opportunities by following [web3js](https://twitter.com/web3_js) on X.

1 comment on commit c62ef79

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: c62ef79 Previous: 88b7e2e Ratio
processingTx 9041 ops/sec (±3.62%) 9219 ops/sec (±3.36%) 1.02
processingContractDeploy 37458 ops/sec (±6.70%) 38213 ops/sec (±7.03%) 1.02
processingContractMethodSend 18860 ops/sec (±6.48%) 19245 ops/sec (±6.02%) 1.02
processingContractMethodCall 37636 ops/sec (±6.11%) 38559 ops/sec (±4.51%) 1.02
abiEncode 43512 ops/sec (±7.01%) 41839 ops/sec (±8.41%) 0.96
abiDecode 29213 ops/sec (±8.82%) 30277 ops/sec (±6.54%) 1.04
sign 1556 ops/sec (±3.28%) 1556 ops/sec (±3.30%) 1
verify 375 ops/sec (±0.46%) 374 ops/sec (±0.46%) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.