sachinraja / trpc-playground

playground for running tRPC queries in the browser
MIT License
281 stars 19 forks source link

Error when load playground, Cannot convert undefined or null to object #39

Closed mulyoved closed 1 year ago

mulyoved commented 1 year ago

Hi,

1st time trying to use the library

loading http://localhost:3000/api/trpc-playground

get this error,

error - TypeError: Cannot convert undefined or null to object at Function.entries () at buildTrpcTsType (file:///C:/orderio04/node_modules/trpc-playground/dist/chunk-W4SFKB57.js:210:10) at Object.zodResolveTypes [as resolveTypes] (file:///C:/orderio04/node_modules/trpc-playground/dist/chunk-W4SFKB57.js:231:12) at file:///C:/orderio04/node_modules/trpc-playground/dist/chunk-YNRQKXGS.js:17:38 at file:///C:/orderio04/node_modules/uttp/dist/chunk-4QB5FPND.js:9:30 at eval (webpack-internal:///(api)/./pages/api/trpc-playground.ts:13:96) { page: '/api/trpc-playground' }

Any hint where to check?

sachinraja commented 1 year ago

we need a reproduction

mulyoved commented 1 year ago

closing this, due to using old trpc version