Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

141
Visualizações
"No overload matches this call"

I'm currently working on a project for college and i dont know what this message mean i'm trying to make an API that reads as .csv file and stores it data on a data bank using insomnia but i dont know how to fix that.

No overload matches this call. The last overload gave the following error. Argument of type '(request: Request, response: Response) => any' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'. Type '(request: Request, response: Response) => any' is not assignable to type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'. Types of parameters 'request' and 'req' are incompatible. Type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is missing the following properties from type 'Request': cache, credentials, destination, integrity, and 13 more.

import { Router } from "express";

import multer from "multer";

const multerConfig = multer();

const router = Router();

router.post("/products", multerConfig.single("file"), (request: Request, response: Response)=>{
console.log(request.file);
    return response.send();
})

export {router};
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I believe you should just need to update your types and import the types from Express.

import { Router, Request, Response } from 'express';

Since right now you are using Fetch API types.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda