Upgrading from:
// package.json
"@polkadot/api": "^6.7.2",
"@polkadot/types": "^6.7.2",
to:
// package.json
"@polkadot/api": "^7.7.1",
"@polkadot/types": "^7.7.1",
causes major compilation problems when using TypeScript on the front-end. There are a lot of missing types from the @polkadot/types/lookup
folder (for example: Error: node_modules/@polkadot/api-derive/balances/types.d.ts:3:15 - error TS2305: Module '"@polkadot/types/lookup"' has no exported member 'PalletBalancesBalanceLock'
).
Is there a problem with the packages or is there some way to fix these errors? (Note, I'm currently only hitting the Substrate node template. I don't personally have any custom runtime logic in there).