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

201
Visualizações
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 à 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