Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jaller94 opened this issue Dec 2, 2023 · 0 comments · May be fixed by #127
Open

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

jaller94 opened this issue Dec 2, 2023 · 0 comments · May be fixed by #127

Comments

@jaller94
Copy link

jaller94 commented Dec 2, 2023

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)
                                                             ~~~~~

@jaller94 jaller94 linked a pull request Dec 2, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant