bug: Example for Next.js pages Apollo client is failing
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- graphql, nextjs
- Domain
- documentation, frontend
Research direction
Start with the README and examples/nextjs-pages-router/apollo-client-data-fetch/src/lib/client.js, especially lines 55-60, then run npm run dev without Persisted Queries configured to reproduce the error. Done means the README explains the setup and the example shows how to run without Persisted Queries, with the development command working in both cases.
Written by the indexing model from the issue text.
Description
Just a small bug.
If you run npm run dev and you do not have Persisted Queries setup you get the below error:
We should consider updating the README with how to setup persisted queries and also maybe consider adding a commented out example of how to run the example without persisted queries:
const link = new HttpLink({
uri: WORDPRESS_URL + "/graphql",
useGETForQueries: true,
});
- Dominant language
- PHP
- Stars
- 47
- Forks
- 3
- Avg merge
- 1m
- Merged PRs (30d)
- 19
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wpengine/hwptoolkit
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
wpengine/hwptoolkit#668 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
wpengine/hwptoolkit#542 ·
-
topic:toolkit
Difficulty 5/5 Over a week Newbie friendliness 25/100
wpengine/hwptoolkit#493 · 1 comment ·
-
topic:previews
Difficulty 4/5 3-5 days Newbie friendliness 25/100
wpengine/hwptoolkit#492 ·
-
topic:logging
Difficulty 3/5 1-2 days Newbie friendliness 45/100
wpengine/hwptoolkit#484 ·
All issues in wpengine/hwptoolkit
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
coollabsio/coolify#11927 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100