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

200
Views
Importación no encontrada: getCleanUrl

Intento usar MSW con '@web/dev-server' y siempre obtengo un Uncaught SyntaxError: import not found: getCleanUrl

procedente de http://localhost:8000/node_modules/msw/lib/esm/RequestHandler-deps.js

El ejemplo más mínimo que puedo encontrar es:

 <script type="module"> import { setupWorker, rest } from 'msw'; window.onload = function () { const worker = setupWorker( rest.get('/test', (req, res, ctx) => { return res( ctx.json({ value: 'test', }) ) }), ) worker.start(); } </script>

dentro del index.html

El caso es que puedo ver getCleanUrl dentro del depurador del navegador cuando navego dentro de la carpeta node_modules.

Además, mockServiceWorker.js está configurado correctamente en la raíz, puedo navegar a través de http://localhost:8000/mockServiceWorker.js

Así que estoy muy confundido por qué el navegador se queja de no encontrarlo.

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!