Lois
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Lois on 5/17/2024 in #questions
server action split tasks
Genuine question, if you want a server action A that doesn't block your UI,
action does 1, 2, 3, 4 task,
ui only needs 1, 2 to render, it calls action A
how can I rendered the UI, make sure 3, 4 is done after the UI is rendered?
21 replies
DTDrizzle Team
•Created by Lois on 10/27/2023 in #help
Drizzle:push cannot read properties of undefined(reading 'name')
Database: Planetscale
Hi team, I tried to run drizzle:push but it returns an error of
TypeError: Cannot read properties of undefined (reading 'name')
I have checked my tables and every columns has a name...
Details of error be like
I did abruptly aborted several push commands, could this be the reason why it broke?1 replies
TTCTheo's Typesafe Cult
•Created by Lois on 10/24/2023 in #questions
nextjs app router, "fs", "os", "zlib-sync" and trpc experimental edge Router
Environement: Turborepo + pnpm
What's wrong: when I tried to build nextjs, the error is like this warp block https://app.warp.dev/block/h9b0V2covbaCMv8boeSpvc
What I have: a package with discord.js and includes "fs" module, and imported via trpc/[trpc/route.ts in nextjs.
I tried some fixes to configure webpack in next.config liks so, but it didn't work:
I have also disabled edge runtime in trpc edge router, relevant code be:
and
Not sure if more information is needed for help?
2 replies
nextjs app router, "fs", "os", "zlib-sync" and trpc experimental edge Router
Environement: Turborepo + pnpm
What's wrong: when I tried to build nextjs, the error is like this warp block https://app.warp.dev/block/h9b0V2covbaCMv8boeSpvc
What I have: a package with discord.js and includes "fs" module, and imported via trpc/[trpc/route.ts in nextjs.
I tried some fixes to configure webpack in next.config liks so, but it didn't work:
I have also disabled edge runtime in trpc edge router, relevant code be:
and
Not sure if more information is needed for help?
2 replies
TurboRepo: Prisma-Kysely Generator
Weirdest thing: It worked before, and all of a sudden it doesn't. I switched to using
prisma-client-js
and switch it back to prisma-kysely
, then it didn't work.
Error log:
inputs in Turbo.json
tsconfig:
generator set up in schema.prisma
package.json db:generate
command set up:
practically similar set up with https://acme-corp.jumr.dev/, I throw my schema in there and it successfully generated, but in my set up after I switched to using prisma-client-js
and switch it back to prisma-kysely
it didn't work. Even after using pnpm clean
, deleted node-modules, and pnpm i
again...is there some weird cache exists I don't know even if I specify cache:false
Did some search around didn't find anyone has similar issue, anyone know what could be the cause?
prisma is hoisted here in a turborepo.4 replies
TTCTheo's Typesafe Cult
•Created by Lois on 3/20/2023 in #questions
I am trying to understand the necessity of Kafka
15 replies
TTCTheo's Typesafe Cult
•Created by Lois on 1/23/2023 in #questions
Computer Vision Camera recommendation
Hey amazing team Theo, I am looking for OpenCV camera replacement for OAK-1/OAK-D, does anyone have similar experience? Is it recommended to replace it with cheaper options? What could be the drawback?
1 replies
Hardware IoT API
Maybe it's a wrong place to ask but out of curious: Does anyone have experience building API for hardware/IoT device to control and monitor them from frontend? How's the process? How long did it take? How's the investment come back?
4 replies
TTCTheo's Typesafe Cult
•Created by Lois on 1/12/2023 in #questions
Hardware or IoT API
Maybe it's the wrong place to ask but out of curious: Does anyone have experience building API for hardware/IoT device? How's the process? How long did it take? How's the investment come back?
14 replies
TTCTheo's Typesafe Cult
•Created by Lois on 12/30/2022 in #questions
tutorial hell unhandle runtime error
Can anyone help with this? not sure if it is Prisma model problem or how I require prisma went wrong. here is my error message
and my prisma model is
and my router code within
server/router/tweets/ts
looks like
while on the front end it looks like
not sure what went wrong51 replies
transformers, tensor.js, PyTorch and tRPC
dumb question: does anyone has experience with tensorflow.js? is there any major obstacle to use tensorflow.js rather than PyTorch and tensor? Just wondering if there could be any future difficulty using t3 stack while having transformers and embedding models to generate output at the backend
1 replies