-
-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error after upgrading to graphql 16.7.0: "Uncaught SyntaxError: Unexpected string" #1643
Comments
I get the same issue too. When i roll back to msw 0.40.2, it seems to work again. |
This seems to be caused by graphql/graphql-js#3887, and it's been reported multiple times on the graphql repo as it's causing problems for projects other than msw. For example:
|
@oidualc I'm using REST and it's exhibiting the same problem. I can make a repo if you want. |
Repo wont be needed, but thank you for offering :) The issue has already been identified, waiting for action on the side of the graphql maintainers. |
ah, but the issue I'm seeing the issue with REST and would it be caused by the same issue? Or is it something completely different? |
Closing the issue as it was resolved upstream with graphql/graphql-js#3923. For future reference for anyone who will encounter this bug, just make sure to upgrade the graphql sub-dependency at least to https://github.com/graphql/graphql-js/releases/tag/v16.7.1. |
This could be an error introduced with version 16.7.0 of the graphql package. Please downgrade for 16.6.0 for now, we are looking into this. |
@oidualc , is a newer version of graphql installed in |
@kristojorg hello! I have updated vite to the latest version (3.0.7 -> 4.4.7) and am updating msw - and the problem is solved check this issue #1655 |
Thank you @integratorivan ! I'll give it a try : ) |
Prerequisites
Environment check
msw
versionBrowsers
Chromium (Chrome, Brave, etc.)
Reproduction repository
https://github.com/oidualc/msw-graphql-issue
Reproduction steps
pnpm install
pnpm run dev
Current behavior
Blank page and error on console
Uncaught SyntaxError: Unexpected string
.This happens since upgrading graphql to 16.7.0, does not happen forcing the version to 16.6.0.
Expected behavior
Page rendered correctly, no errors on console.
The text was updated successfully, but these errors were encountered: