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

Property 'files' does not exist on type 'IncomingMessage'.ts(2339) #14

Open
bkawk opened this issue Mar 11, 2022 · 4 comments
Open

Property 'files' does not exist on type 'IncomingMessage'.ts(2339) #14

bkawk opened this issue Mar 11, 2022 · 4 comments

Comments

@bkawk
Copy link

bkawk commented Mar 11, 2022

Screenshot 2022-03-11 at 23 06 41

@LWJerri
Copy link

LWJerri commented May 27, 2022

Screenshot 2022-03-11 at 23 06 41

Hello. Do u solve this problem?

@ridhof
Copy link

ridhof commented Jul 12, 2022

the dirty way to solve that problem is by using ts-ignore to ignore the const files = req.raw.files line

I couldn't find a proper way to solve it yet

@gurumaxi
Copy link

Same problem here.

@andaman-nr
Copy link

try to add this in code

declare module 'http' {
  interface IncomingMessage {
    files: {
      [key: string]: {
        name: string;
        data: Buffer;
        size: number;
        encoding: string;
        tempFilePath: string;
        truncated: boolean;
        mimetype: string;
        md5: string;
        mv: () => void;
      };
    };
  }
}

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

No branches or pull requests

5 participants