Skip to content

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

@littlebee

Description

@littlebee

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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions