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

145
Views
Mock Service Worker with Gatsby.js

i'm using Mirage.js to fake api call's but mirage is causing some issues on our Gatsby project.

i had the idea of using with Mock Service Worker(MSW) instead.

i'm receiving an error when using setupWorker:

[MSW] Failed to execute setupWorker in a non-browser environment. consider using setupServer for Node.js environment instead.

i tried using setupServer, but received errors from webpack

ERROR #98124 Generating development JavaScript bundle failed

i'm not using it on Jest, its just for normal API calls

it possible to use MSW with Gatsby? i scrolled through the docs, but didn't find anything related to Gatsby.

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!