Unable to initialize the API: undefined is not a function
Open
bug
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
reports of 1.4.0 release being unable to connect with mainnet
```
Unable to initialize the API: undefined is not a function
```
Debugging shows this line may be the cause
https://github.com/polkadot-js/api/blob/033cba718d31e8bbd8b90ece99b7e9e6a7db579d/packages/api/src/base/Init.ts#L250
```js
const metadataKey = `${this._genesisHash?.toHex() || '0x'}-${runtimeVersion.specVersion.toString()}`;
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.