awesome-links
awesome-links copied to clipboard
Runtime error on part-3 branch: Cannot read properties of undefined (reading 'Symbol(Pothos.contextCache)')
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.
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.