Closed gnakic closed 1 week ago
I don't know what specific code this is caused by, but I did fix an issue that looked similar to this earlier today.
Upgrading @0no-co/graphqlsp
should resolve this since we shipped this fix: https://github.com/0no-co/GraphQLSP/pull/335
@kitten does tada 1.8.0 use the latest version of the lsp plugin with that fix? Asking because I don't use the lsp plugin directly anymore but gql.tada/ts-plugin
instead, as per new devlog instructions
It's a dependency so it would be installed under the hood, you could try bumping it yourself with a resolution
or something like npm install @0no-co/graphqlsp@latest
Got it. I've put @0no-co/graphqlsp
at version 1.12.9
into resolutions
, but still get the same error.
Without a code snippet of the graphql.persisted
call that's causing this, it's unlikely we can issue a targeted fix, but I can at least push a stopgap solution https://github.com/0no-co/GraphQLSP/pull/337
@gnakic: You should be able to try this by upgrading to @0no-co/graphqlsp@1.12.10. Just to note this, basically, we may not always bump graphqlsp
inside gql.tada
going forward. But it's a transitive dependency for you, so instead of a resolution, a simple update command should most of the time do the trick. (e.g. pnpm update @0no-co/graphqlsp
et al)
I'll have to look into our CLI doing some of these checks for people.
@kitten can confirm the error is gone as well as things still working. Thank you for such a quick fix! Let me know if you're still considering a targeted fix, as I can try and share more meaningful output as soon as I figure out how.
I think the targted fix will only be necessary if you see anything wrong with the graphql.persisted
detection or logic (e.g. in check
commands as well, etc). If not, then this is likely an "intermediary" error that occurs when you write a semantically valid graphql.persisted
call but it isn't quite in the complete shape we expect it to be.
Describe the bug
lsp-clients-typescript-prefer-use-project-ts-server
is set to true to ensure the projecttsserver.js
is used.Reproduction
No response
gql.tada version
gql.tada 1.8.0
Validations