t3dotgg / chirp

https://xn--uo8h.t3.gg/
393 stars 61 forks source link

getting an error: "Class extends value undefined is not a constructor or null" #2

Closed Jared-Dahlke closed 1 year ago

Jared-Dahlke commented 1 year ago

thanks for the tutorial! I'm about 20 mins in. (just set up the posts router) and am getting this error now:

error - Error [TypeError]: Class extends value undefined is not a constructor or null
    at ../../node_modules/.pnpm/undici@5.11.0/node_modules/undici/lib/fetch/file.js (evalmachine.<anonymous>:5724:19)
    at __require (evalmachine.<anonymous>:14:50)
    at ../../node_modules/.pnpm/undici@5.11.0/node_modules/undici/lib/fetch/formdata.js (evalmachine.<anonymous>:5881:49)
    at __require (evalmachine.<anonymous>:14:50)
    at ../../node_modules/.pnpm/undici@5.11.0/node_modules/undici/lib/fetch/body.js (evalmachine.<anonymous>:6094:35)
    at __require (evalmachine.<anonymous>:14:50)
    at ../../node_modules/.pnpm/undici@5.11.0/node_modules/undici/lib/fetch/response.js (evalmachine.<anonymous>:6510:49)
    at __require (evalmachine.<anonymous>:14:50)
    at <unknown> (evalmachine.<anonymous>:11635:30)
    at requireFn (file:///Users/jaredd/Desktop/repos/twitterclone/node_modules/next/dist/compiled/edge-runtime/index.js:1:7079) {
  middleware: true
}

after inspecting network, i see i am getting 500 on posts.getAll: image

Jared-Dahlke commented 1 year ago

Figured this out. It looks like I needed to update Node to a newer version and also update Prisma to a newer version. Closing this issue.