2020-09-03
2040
#nextjs
Nirmalya Ghosh
24180
Sep 3, 2020 ⋅ 7 min read

Getting started with Mock Service Worker

Nirmalya Ghosh I'm a computer science engineer specializing in web design and development with an eye for detail. I have over three years of experience with React and also fiddle with Ruby on Rails and Elixir.

Recent posts:

podrocket open claw an the ai shift

Open Claw, AI agents, and the future of developer workflows

Paige, Jack, Paul, and Noel dig into the biggest shifts reshaping web development right now, from OpenClaw’s foundation move to AI-powered browsers and the growing mental load of agent-driven workflows.

PodRocket
Mar 2, 2026 ⋅ 47 sec read
knowledge sharing techniques for engineering teams

Why engineering knowledge disappears as teams scale (and how to fight it)

Discover five practical ways to scale knowledge sharing across engineering teams and reduce onboarding time, bottlenecks, and lost context.

Marie Starck
Mar 2, 2026 ⋅ 6 min read
Headless UI Alternatives: Radix Primitives, React Aria, Ark UI

Headless UI alternatives: Radix Primitives vs. React Aria vs. Ark UI vs. Base UI

Check out alternatives to the Headless UI library to find unstyled components to optimize your website’s performance without compromising your design.

Amazing Enyichi Agu
Mar 2, 2026 ⋅ 10 min read

Designing a fully local RAG with small language models setup

A practical guide to building a fully local RAG system using small language models for secure, privacy-first enterprise AI without relying on cloud services.

Rosario De Chiara
Mar 2, 2026 ⋅ 5 min read
View all posts

3 Replies to "Getting started with Mock Service Worker"

  1. Hi Nirmalya,

    is MSW work for axios.get call, I am trying to intercept the axios response with mock response using MSW.

    Thank you

  2. MSW setupserver – server.listen() can be run in client side?. I’m planning to integrate MSW with angular 16 application, But when i try to add server.listen() in angular environment.ts file and compile the application throws below errors,

    Error: Module not found: Error: Package path ./node is not exported from package C:\Stash\New modern-ui\node_modules\msw (see exports field in C:\Stash\New modern-ui\node_modules\msw\package.json)

Leave a Reply

Hey there, want to help make our blog better?

Join LogRocket’s Content Advisory Board. You’ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag.

Sign up now