Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
"Ninguna sobrecarga coincide con esta llamada"

Actualmente estoy trabajando en un proyecto para la universidad y no sé qué significa este mensaje. Estoy tratando de crear una API que se lea como un archivo .csv y almacene los datos en un banco de datos usando el insomnio, pero no sé cómo solucionarlo. .

Ninguna sobrecarga coincide con esta llamada. La última sobrecarga dio el siguiente error. El argumento de tipo '(solicitud: Solicitud, respuesta: Respuesta) => cualquiera' no se puede asignar al parámetro de tipo 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'. El tipo '(solicitud: Solicitud, respuesta: Respuesta) => cualquiera' no se puede asignar al tipo 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'. Los tipos de parámetros 'request' y 'req' son incompatibles. Al tipo 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' le faltan las siguientes propiedades del tipo 'Request': caché, credenciales, destino, integridad y 13 más.

 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 answers
Answer question

0

Creo que solo debería necesitar actualizar sus tipos e importar los tipos de Express.

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

Dado que en este momento está utilizando tipos de API Fetch.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!