Alex-D / check-disk-space

Light multi-platform disk space checker without third-party for Node.js
https://www.npmjs.com/package/check-disk-space
MIT License
103 stars 24 forks source link

checkDiskSpace() This expression is not callable. #31

Open themuaz97 opened 3 months ago

themuaz97 commented 3 months ago

windows: 11 node: 20.16.0 modules: es modules typescript: 5.5.4 check-disk-space: 3.4.0

This expression is not callable. Type 'typeof import("c:/node_modules/check-disk-space/dist/check-disk-space")' has no call signatures.

try to call it in one of my function but it doesnt works

`export const checkDisk = async (req: Request, res: Response) => { try { const drives = await checkDiskSpace()

} catch (error: any) { res.status(500).json({ error: error }); } }`