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

191
Views
La firma de 'parse' está en desuso

Estoy creando un servidor de nodos, pero hay una función obsoleta. Tengo el siguiente error en mi código:

 The signature '(urlString: string): UrlWithStringQuery' of 'parse' is deprecated.ts(6387) url.d.ts(63, 8): The declaration was marked as deprecated here. (alias) parse(urlString: string): UrlWithStringQuery (+3 overloads) import parse The url.parse() method takes a URL string, parses it, and returns a URL object. A TypeError is thrown if urlString is not a string.

mi código es:

 server.on('request', function (req, res) { var filename = parse(req.url).pathname, fullPath, extension; ...

¿Qué puedo usar en lugar de parse(req.url).pathname?

about 4 years ago · Juan Pablo Isaza
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!