Relative Content

Tag Archive for javascripttypescriptzod

Error TS2307: Cannot find module while deploying

I cloned repo and then did a deployment onto Cloudflare worker for staging server. Server will not run live until this issue is resolved. I ran the command npm run frontend: build and it outputs the following error:

Zod allow all keys matching regex

I’m using zod to validate some data, and I want to allow certain attributes, as well as any attribute with key matching /metadata_hash_.*/.

Zod dealing with image object

I’m working with react-file-base64 which gives metadata of files such as name, type of files, size, base64 encoding, i registered the zod validation, even though i uploaded the image, zod throws “image required error”. I cross verified, zod isn’t accepting any image object to verify, How to deal with this error.