question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Instruct all graphiql/toolkit users to install graphql-ws

See original GitHub issue

seems it breaks my builds with

Module not found: Error: Can't resolve 'graphql-ws' in '/proj/node_modules/@graphiql/toolkit/esm/create-fetcher'

i don’t use graphql-ws directly but the fetcher as described in doc

import { createGraphiQLFetcher } from '@graphiql/toolkit'

const fetcher = createGraphiQLFetcher({
	url: '/graphql',
})

would pin point the breakage here https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f BC graphql-ws was included by graphql-config which is not true anymore?

Thanks for the work here 😃

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
enisdenjocommented, Apr 19, 2022

I’d suggest leaving it as a peer dep, absolutely no need to push a new version of @graphiql/toolkit everytime graphql-ws updates.

1reaction
acaocommented, Apr 19, 2022

I’m reopening until we resolve this ticket by updating the docs at least.

@eMerzh agreed, I think we need to update several markdown files with these instructions

Read more comments on GitHub >

github_iconTop Results From Across the Web

graphql-ws - npm
Install · Create a GraphQL schema · Start the server · Use the client.
Read more >
Subscriptions in Apollo Server - Apollo GraphQL Docs
This article uses the graphql-ws library to add support for subscriptions to Apollo Server 4. ... Install graphql-ws , ws , and @graphql-tools/schema...
Read more >
GraphQL Code Libraries, Tools and Services
A simple and flexible JavaScript GraphQL client that works in all JavaScript environments (the browser, Node.js, and React Native) - basically a lightweight ......
Read more >
Subscriptions and Live Queries - Real Time with GraphQL
Subscriptions are the go-to solution for adding real-time capabilities to a GraphQL-powered application. At the same time the term GraphQL ...
Read more >
Graphql-ws NPM
Use Server-Sent Events (SSE) instead? Check out graphql-sse! Getting started. Install. yarn add graphql-ws. Create a GraphQL schema.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found