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

Typegen create bad augment-api.ts #4407

Closed sigoden closed 2 years ago

sigoden commented 2 years ago

package version:

@polkadot/api: @polkadot/api@7.1.2-7
@polkadot/typegen: @polkadot/typegen@7.1.2-7

Generate src/interfaces/argument-api.ts

// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */

import '@polkadot/api/augment/rpc';
import './augment-api-consts';
import './augment-api-errors';
import './augment-api-events';
import './augment-api-query';
import './augment-api-tx';
import './augment-api-rpc';

In package @polkadot/api@7.12, there is no '@polkadot/api/augment/rpc' TS will throw Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './augment/rpc' is not defined by "exports" in /@polkadot/api/package.json

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.