cd <folder>yarnnpx msw init public --saveyarn 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'
Prerequisites
Environment check
msw
versionBrowsers
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.