You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TSError: ⨯ Unable to compile TypeScript:
src/controllers/user/user.controller.ts:24:39 - error TS2339: Property 'location' does not exist on type 'File'.
24 req.body.profileImage = req.file?.location;
const file = req.file as Express.MulterS3.File;
const profileImage = file?.key;
This works
But type of req.file if Express.Request.file?: Express.Multer.File | undefined
Shouldn't it be Express.Request.file?: Express.MulterS3.File | undefined??
This code block, throws this TS error
Log of req.file if working fine
The text was updated successfully, but these errors were encountered: