Instruct all graphiql/toolkit users to install graphql-ws
See original GitHub issueseems 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:
- Created a year ago
- Reactions:1
- Comments:13 (11 by maintainers)
Top Results From Across the Web
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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d suggest leaving it as a peer dep, absolutely no need to push a new version of
@graphiql/toolkit
everytimegraphql-ws
updates.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