mswjs / msw

Industry standard API mocking for JavaScript.
https://mswjs.io
MIT License
15.97k stars 519 forks source link

Module not found: Error: Can't resolve 'graphql' #2264

Closed kguptaping closed 2 months ago

kguptaping commented 2 months ago

Prerequisites

Environment check

Browsers

Chromium (Chrome, Brave, etc.)

Reproduction repository

https://github.com/kguptaping/msw-issue

Reproduction steps

cd <folder> yarn npx msw init public --save yarn start

Current behavior

Error: ERROR in ./node_modules/msw/lib/core/utils/internal/parseGraphQLRequest.mjs 17:12-29 Module not found: Error: Can't resolve 'graphql' in '/Users/<user>/codebase/node_modules/msw/lib/core/utils/internal'

Expected behavior

Should not show any issue.

kettanaito commented 2 months ago

Released: v2.4.3 🎉

This has been released in v2.4.3!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.