Skip to content

Index signature problem with "@imtbl/sdk": "2.12.2" #2758

@mahmoudparandeh

Description

@mahmoudparandeh

In Angular v20.3.0 with TypeScript v5.9.2 i got these errors:
[ERROR] TS5102: Option 'suppressImplicitAnyIndexErrors' has been removed. Please remove it from your configuration. [plugin angular-compiler]

X [ERROR] TS4111: Property 'error_description' comes from an index signature, so it must be accessed with ['error_description']. [plugin angular-compiler]

node_modules/@imtbl/auth/src/Auth.ts:67:29:
  67 │ ...nst description = data.error_description ?? data.message ?? dat...
     ╵                           ~~~~~~~~~~~~~~~~~

X [ERROR] TS4111: Property 'message' comes from an index signature, so it must be accessed with ['message']. [plugin angular-compiler]

node_modules/@imtbl/auth/src/Auth.ts:67:55:
  67 │ ...escription = data.error_description ?? data.message ?? data.error;
     ╵                                                ~~~~~~~

X [ERROR] TS4111: Property 'error' comes from an index signature, so it must be accessed with ['error']. [plugin angular-compiler]

node_modules/@imtbl/auth/src/Auth.ts:67:71:
  67 │ ...escription = data.error_description ?? data.message ?? data.error;
     ╵                                                                ~~~~~

X [ERROR] TS4111: Property 'direct' comes from an index signature, so it must be accessed with ['direct']. [plugin angular-compiler]

node_modules/@imtbl/auth/src/Auth.ts:457:17:
  457 │           params.direct = directLoginOptions.directLoginMethod;
      ╵                  ~~~~~~

X [ERROR] TS4111: Property 'email' comes from an index signature, so it must be accessed with ['email']. [plugin angular-compiler]

node_modules/@imtbl/auth/src/Auth.ts:458:17:
  458 │           params.email = emailValue;
      ╵                  ~~~~~

X [ERROR] TS4111: Property 'direct' comes from an index signature, so it must be accessed with ['direct']. [plugin angular-compiler]

node_modules/@imtbl/auth/src/Auth.ts:461:15:
  461 │         params.direct = directLoginOptions.directLoginMethod;
      ╵                ~~~~~~

X [ERROR] TS4111: Property 'marketingConsent' comes from an index signature, so it must be accessed with ['marketingConsent']. [plugin angular-compiler]

node_modules/@imtbl/auth/src/Auth.ts:464:15:
  464 │         params.marketingConsent = directLoginOptions.marketingCon...
      ╵                ~~~~~~~~~~~~~~~~

X [ERROR] TS4111: Property 'im_passport_trace_id' comes from an index signature, so it must be accessed with ['im_passport_trace_id']. [plugin angular-compiler]

node_modules/@imtbl/auth/src/Auth.ts:469:13:
  469 │       params.im_passport_trace_id = imPassportTraceId;
      ╵              ~~~~~~~~~~~~~~~~~~~~

X [ERROR] TS4111: Property 'JEST_WORKER_ID' comes from an index signature, so it must be accessed with ['JEST_WORKER_ID']. [plugin angular-compiler]

node_modules/@imtbl/auth/src/utils/logger.ts:6:43:
  6 │ ...st shouldLog: boolean = process?.env?.JEST_WORKER_ID === undefined;
    ╵                                          ~~~~~~~~~~~~~~

X [ERROR] TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'Error'. [plugin angular-compiler]

node_modules/@imtbl/wallet/src/zkEvm/JsonRpcError.ts:24:18:
  24 │   public readonly message: string;
     ╵                   ~~~~~~~

X [ERROR] TS4111: Property 'readNonce' comes from an index signature, so it must be accessed with ['readNonce']. [plugin angular-compiler]

node_modules/@imtbl/wallet/src/zkEvm/walletHelpers.ts:94:34:
  94 │     const result = await contract.readNonce(space);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions