Thinkmill / Thinkmill/keystatic
Keystatic with NextJS 14 incompatible with Turbopack in GitHub mode
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 159
- Avg merge
- 21h 41m
- Merged PRs (30d)
- 2
Description
When I turn on the NextJS dev server with GitHub mode on, I get this error:
Unhandled Runtime Error
ReferenceError: e is not defined
Call Stack
Kind
file:/Users/tyteen4a03/Documents/CodeProjects/xxx/.next/static/chunks/node_modules__pnpm_dde646._.js (35136:17)
Kind
node_modules/.pnpm/@urql+core@5.1.0_graphql@16.10.0/node_modules/@urql/core/src/utils/request.ts (185:23)
getOperationName
node_modules/.pnpm/@urql+core@5.1.0_graphql@16.10.0/node_modules/@urql/core/src/utils/request.ts (110:29)
hashDocument
node_modules/.pnpm/@urql+core@5.1.0_graphql@16.10.0/node_modules/@urql/core/src/utils/request.ts (136:48)
keyDocument
node_modules/.pnpm/@urql+core@5.1.0_graphql@16.10.0/node_modules/@urql/core/src/utils/request.ts (171:17)
createRequest
node_modules/.pnpm/urql@4.2.1_@urql+core@5.1.0_graphql@16.10.0__react@18.3.1/node_modules/urql/src/hooks/useRequest.ts (20:21)
React
useMemo
node_modules/.pnpm/urql@4.2.1_@urql+core@5.1.0_graphql@16.10.0__react@18.3.1/node_modules/urql/src/hooks/useRequest.ts (19:16)
useRequest
node_modules/.pnpm/urql@4.2.1_@urql+core@5.1.0_graphql@16.10.0__react@18.3.1/node_modules/urql/src/hooks/useQuery.ts (227:19)
GitHubAppShellDataProvider
node_modules/.pnpm/@keystatic+core@0.5.43_next@14.2.15_react-dom@18.3.1_react@18.3.1__react@18.3.1__react-dom@18_27ueynv6hjtnao437kl3obhyku/node_modules/@keystatic/core/dist/index-efdba9b6.js (2418:26)
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce with the NextJS 14 dev server, GitHub mode enabled, and Turbopack. Start with the @urql/core request.ts stack and @keystatic/core's GitHubAppShellDataProvider entry point shown in the trace. Done means the development server runs without the ReferenceError: e is not defined failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, nextjs, typescript
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100