Skip to content

Build error: No overload matches this call (this.addSubTree) #126

@jaller94

Description

@jaller94

Using NodeJS 19, I get the following error:

manager/v2/fileSystem/FileSystem.ts:2032:57 - error TS2769: No overload matches this call.
  Overload 1 of 4, '(ctx: RequestContext, rootPath: string | Path, subTree: SubTree, callback: SimpleCallback): void', gave the following error.
    Argument of type 'String | Buffer | ResourceType' is not assignable to parameter of type 'SubTree'.
      Type 'String' is not assignable to type 'SubTree'.
        Index signature is missing in type 'String'.
  Overload 2 of 4, '(ctx: RequestContext, rootPath: string | Path, resourceType: string | Buffer | ResourceType, callback: SimpleCallback): void', gave the following error.
    Argument of type 'String | Buffer | ResourceType' is not assignable to parameter of type 'string | Buffer | ResourceType'.
      Type 'String' is not assignable to type 'string | Buffer | ResourceType'.
        Type 'String' is not assignable to type 'string'.
          'string' is a primitive, but 'String' is a wrapper object. Prefer using 'string' when possible.

2032                         this.addSubTree(ctx, childPath, value, cb)
                                                             ~~~~~

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