Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

202
Vistas
Import not found: getCleanUrl

I try to use MSW with '@web/dev-server' and always get a Uncaught SyntaxError: import not found: getCleanUrl

coming form http://localhost:8000/node_modules/msw/lib/esm/RequestHandler-deps.js

The most minimal example I can come up is:

<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>

inside the index.html

The thing is, I can see getCleanUrl inside the browser debugger when I navigate inside the node_modules folder to it.

Also the mockServiceWorker.js is set correctly on the root, I can navigate to it via http://localhost:8000/mockServiceWorker.js

So I am very confused why the browser complains about not finding it..

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda