Next.js Discord

Discord Forum

multiparty issues when importing

Answered
Waterman posted this in #help-forum
Open in Discord
Avatar
picture displays error:
the thing is that I have installed multiparty but still get that error in the image I linked

I also have 3 moderate severityu vulnerabilities, I will also link an image to that error:
Image
Image
Answered by Waterman
I found a fix, I had to create a multiparty.d.ts file in the root directory, then place this code in to it:
declare module 'multiparty' {
  const multiparty: any;
  export default multiparty;
}
View full answer

1 Reply

Avatar
I found a fix, I had to create a multiparty.d.ts file in the root directory, then place this code in to it:
declare module 'multiparty' {
  const multiparty: any;
  export default multiparty;
}
Answer