mswjs / msw

Seamless REST/GraphQL API mocking library for browser and Node.js.
https://mswjs.io
MIT License
15.28k stars 479 forks source link

Uncaught SyntaxError: Unexpected string (at msw.js?v=2dd0a77b:2057:51) #2160

Closed radiantone closed 1 month ago

radiantone commented 1 month ago

Prerequisites

Environment check

Browsers

Chromium (Chrome, Brave, etc.)

Reproduction repository

...

Reproduction steps

...

Current behavior

Trying to use msw in my quasar vite app. I saw closed tickets about this before claiming it was an upstream issue in graphql library and was fixed, but all I know is browser throws the error

Uncaught SyntaxError: Unexpected string (at msw.js?v=2dd0a77b:2057:51)

Expected behavior

No SyntaxError runtime exceptions

radiantone commented 1 month ago
$ npm ls|grep msw
├── msw@2.3.0
radiantone commented 1 month ago

Pin graphql dependency to 16.7.1 since the problem is resolved there, but broken in future releases.