#Help with promisify error

1 messages · Page 1 of 1 (latest)

hard grotto
#

code: ```ts
const globPromise = promisify(glob);

error: ```ts
No overload matches this call.
  The last overload gave the following error.
    Argument of type 'typeof import("C:/Users/mark/Desktop/Coiding_anything/typebot/node_modules/glob/dist/commonjs/index")' is not assignable to parameter of type 'Function'.
      Type 'typeof import("C:/Users/mark/Desktop/Coiding_anything/typebot/node_modules/glob/dist/commonjs/index")' is missing the following properties from type 'Function': apply, call, bind, prototype, and 6 more.ts(2769)

util.d.ts(1169, 21): The last overload is declared here

pls help with this

civic pivot
#

@hard grotto what is glob?

#

from the error it looks like you're doing something like import glob from 'glob'; promisify(glob); which won't work, it should be import { glob } from 'glob';

hard grotto