Skip to content

7.x typegen configuration (migration from 5.1.1) #4481

Closed
@monitz87

Description

@monitz87

Hi. I'm trying to migrate some typescript projects to use version 7.4.1 (from 5.1.1). The types are generated without issue, but the compiler throws a ton of errors when attempting to build the projects:

  • Module '"@polkadot/types/lookup"' has no exported member 'PalletImOnlineHeartbeat' is a good example. None of the stuff being imported from @polkadot/types/lookup can be found
  • Cannot find name 'PolymeshPrimitivesDocument' where PolymeshPrimitivesDocument is (I assume) some sort of wrapper over our custom Document type. There is no indication that the augmented types are even trying to import the custom types from anywhere

Is there some special configuration required in order to make this work in 7.x?

Metadata

Metadata

Assignees

No one assigned

    Labels

    SupportTracks issues or requests related to troubleshooting, answering questions, and user assistance.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions