Henry Cai

Results 48 comments of Henry Cai

@jkomyno Sorry for the confusion, I think for my case it may not be about Next.js + webpack + prisma-client, but about Vercel (AWS Labmda) packaging and deployment, please see...

Actually I am not using Next.js middleware, but I do use neon adapter which might be the difference? I need to see if I can reproduce it, and thanks for...

@jkomyno Here is the reproduction - Code: https://github.com/CHC383/nextjs-prisma-vercel-debug - Website: https://nextsj-prisma-vercel-debug.vercel.app Besides updating all the dependencies to the latest, which I don't think affects the results, one noticeable change I...

Thanks @jkomyno, I tested the the integration version and it works for my Vercel deployment

I also ran into this problem after upgrading prisma-json-types-generator from v3.1.1 to v3.2.x today (Prisma v5.2.2), and spent about a day to look into the solutions. Although I didn't find...

The same issue I reported on other repos: - NextJs: https://github.com/vercel/next.js/issues/80257 - Webpack: https://github.com/webpack/webpack/issues/19607 I think we either need a fix on Webpack, or update the Prisma generator to write...

The generated code only applies to ESM, for CJS it won't import `node:module` ([generator code](https://github.com/prisma/prisma/blob/a7d6432c0797a632396bbbeff1525df7d8474318/packages/client-generator-ts/src/utils/buildGetWasmModule.ts#L72-L79)). An alternative of the code for ESM format might be ```ts // const { createRequire...

@xiaoxiaojx This does work, does it mean that Webpack couldn't handle `await import()` automatically? And there is no better way to write it in a non-webpack specific way? To provide...

Shouldn't they be `@zod.string().cuid()` and `@zod.string(). describe()`?

I ran into a similar error with a different use case ``` File "/xxx/.venv/lib/python3.13/site-packages/sqladmin/widgets.py", line 33, in __call__ return super().__call__(field, **kwargs) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/xxx/.venv/lib/python3.13/site-packages/wtforms/widgets/core.py", line 176, in __call__ kwargs["value"] =...