Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error on part-3 branch: Cannot read properties of undefined (reading 'Symbol(Pothos.contextCache)') #33

Open
littlebee opened this issue Aug 20, 2023 · 1 comment

Comments

@littlebee
Copy link

Full error:

- event compiled successfully in 118 ms (91 modules)
- error Error [TypeError]: Cannot read properties of undefined (reading 'Symbol(Pothos.contextCache)')
    at file:///Users/bee/projects/biowerks/software/awesome-links/node_modules/@pothos/core/esm/utils/context-cache.js:10:33
    at SchemaBuilder.prismaObject (file:///Users/bee/projects/biowerks/software/awesome-links/node_modules/@pothos/plugin-prisma/esm/schema-builder.js:18:22)
    at eval (webpack-internal:///(api)/./graphql/types/Link.ts:8:47) {
  digest: undefined

Node version: 16.15.1

Repro steps:

git checkout part-3
rm -Rf node_modules
rm -f package-lock.json
npm install 
npx prisma generate
npm run dev
`

When the browser tries to fetch localhost:3000 the error above occurs.


@patrickbnu
Copy link

patrickbnu commented Sep 28, 2023

same problem here.

edit:
I started this tutorial from "part1" and today I cloned main branch (to follow part4) and realized that dependencies versions are older than I had in my previously version here.

So I updated my dependencies versions (like apollo, pothos, etc) and I got this problem solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants