Skip to content

build fails: 2 type errors #1813

@traumschule

Description

@traumschule
➜  substrate-api-sidecar git:(master) ✗ yarn build
rimraf-exec: build/ is an invalid file path and does not exist
tsc 
src/controllers/blocks/BlocksController.ts:324:47 - error TS2345: Argument of type 'IU8a' is not assignable to parameter of type 'BlockHash'.
  Types of property 'buffer' are incompatible.
    Type 'ArrayBufferLike' is not assignable to type 'ArrayBuffer'.
      Type 'SharedArrayBuffer' is not assignable to type 'ArrayBuffer'.
        Types of property '[Symbol.toStringTag]' are incompatible.
          Type '"SharedArrayBuffer"' is not assignable to type '"ArrayBuffer"'.

324   const block = await this.service.fetchBlock(hash, historicApi, options);
                                                  ~~~~

 src/controllers/rc/blocks/RcBlocksController.ts:158:47 - error TS2345: Argument of type 'IU8a' is not assignable to parameter of type 'BlockHash'.
  Types of property 'buffer' are incompatible.
    Type 'ArrayBufferLike' is not assignable to type 'ArrayBuffer'.
      Type 'SharedArrayBuffer' is not assignable to type 'ArrayBuffer'.
        Types of property '[Symbol.toStringTag]' are incompatible.
          Type '"SharedArrayBuffer"' is not assignable to type '"ArrayBuffer"'.

158   const block = await this.service.fetchBlock(hash, historicApi, options);
                                                  ~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions