polkadot-js / api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
Apache License 2.0
1.07k stars 354 forks source link

TypeError: Cannot convert undefined or null to object #4797

Closed GopherJ closed 2 years ago

GopherJ commented 2 years ago

while upgrading @polkadot/api from v7.9 -> v8.3, we start to have the following issue with @polkadot/typgen:

node_modules/@polkadot/typegen/cjs/util/imports.js:98
  Object.entries(importDefinitions).forEach(_ref2 => {
                                    ^
TypeError: Cannot convert undefined or null to object
jacogr commented 2 years ago

It is quite possibly due to ordering, but can only guess since the above has no real contextual information - currently types-from-defs should be run first (to generate the lookup.ts file) before types-from-chain.

polkadot-js-bot commented 2 years ago

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

polkadot-js-bot commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.