ethers.js: ReferenceError in JsonRpcProvider
Getting this error
Uncaught (in promise) ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (12 by maintainers)
Commits related to this issue
- Allow providers to detect their network after instantiation (#814). — committed to ethers-io/ethers.js by ricmoo 4 years ago
- Fix JsonRpcProvider out-of-order super call (#822). — committed to ethers-io/ethers.js by ricmoo 4 years ago
- Fixed FallbackProvider ESM super-this out-of-order issue (#822). — committed to ethers-io/ethers.js by ricmoo 4 years ago
- Fix JsonRpcProvider out-of-order super call (#822). — committed to michaeltout/ethers.js by ricmoo 4 years ago
- Fixed FallbackProvider ESM super-this out-of-order issue (#822). — committed to michaeltout/ethers.js by ricmoo 4 years ago
FYI. Looks like that issue has been marked to be fixed in TypeScript 4. 😃
The FallbackProvider has also been updated and is available in 5.0.0-beta.187.