Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit a1a801b

Browse files
author
santiagodevrel
committed
added guide
1 parent ae92722 commit a1a801b

File tree

1 file changed

+65
-0
lines changed
  • docs/docs/guides/resources_and_troubleshooting

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
sidebar_position: 16
3+
sidebar_label: '📚 Resources & Troubleshooting'
4+
---
5+
# Resources & Troubleshooting
6+
7+
## Troubleshooting
8+
9+
### ReferenceError: Can't find variable: BigInt using React
10+
11+
Occasionally, users encounter errors in web3.js due to external dependencies, which may seem challenging to resolve within the web3.js framework alone.
12+
13+
**Resolution Steps:**
14+
15+
1. Install `rn-nodeify` as a development dependency:
16+
```bash
17+
yarn add --dev rn-nodeify
18+
```
19+
20+
2. Add the `big-integer` package:
21+
```bash
22+
yarn add big-integer
23+
```
24+
25+
3. Create a file named `shim.js` at the root of your project and include the following polyfill:
26+
```ts
27+
if (typeof BigInt === 'undefined') {
28+
global.BigInt = require('big-integer');
29+
}
30+
```
31+
32+
4. Import shim.js at the top of your App.js:
33+
```ts
34+
// Make sure you use `import` and not `require`!
35+
import './shim.js'
36+
```
37+
38+
Additional Info:
39+
40+
[Facebook/React-native Issue #28492](https://github.com/facebook/react-native/issues/28492#issuecomment-824698934)
41+
42+
## Resources
43+
44+
### [Web3.js v4 course](https://www.youtube.com/watch?v=3ZO_t-Kyr1g&list=PLPn3rQCo3XrP4LbQcOyyHQR8McV7w3HZT)
45+
46+
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.
47+
48+
[![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)
49+
50+
51+
### [Web3.js series](https://www.youtube.com/watch?v=BQ_bDH91S4k&list=PLPn3rQCo3XrNf__8irs4-MjMt4fJqW2I_)
52+
53+
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:
54+
55+
1. Getting Started: Kick off your web3 adventure by learning the ropes of web3.js. Master the basics, from installation to making your first call to the blockchain.
56+
57+
2. Essential Tools: Unleash the power of web3.js utilities! From generating random bytes to hashing and checksumming addresses, you'll gain mastery of essential tools for Ethereum development.
58+
59+
3. Sending Transactions: Dive deep into wallets and accounts. Learn how to sign and send transactions to the network, empowering you to interact with the blockchain directly.
60+
61+
[![Web3.js series](https://img.youtube.com/vi/BQ_bDH91S4k/0.jpg)](https://www.youtube.com/watch?v=BQ_bDH91S4k&list=PLPn3rQCo3XrNf__8irs4-MjMt4fJqW2I_)
62+
63+
## Hackathons and Bounties
64+
65+
You'll find the latest hackathons opportunities by following [web3js](https://twitter.com/web3_js) on X.

0 commit comments

Comments
 (0)