---
title: "Discussion on \"Zod 4 required_error Removed: How to Customize Required and Invalid Type Messages\" | Hashnode"
description: "Discussion on \"Zod 4 required_error Removed: How to Customize Required and Invalid Type Messages\". If you upgraded to Zod 4 and your \"This field is required\" messages turned into Invalid input: expected string, received undefined, you hit the removal of required_error. This guide to Zod 4 required_"
url: "https://hashnode.com/posts/zod-4-required-error-removed-how-to-customize-required-and-invalid-type-messages/6b0bd77b4c2f65afeaace85f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Zod 4 required\_error Removed: How to Customize Required and Invalid Type Messages](https://byteorbit.hashnode.dev/zod-4-required-error-removed-how-to-customize-required-and-invalid-type-messages?utm_source=hashnode&utm_medium=feed)

If you upgraded to Zod 4 and your "This field is required" messages turned into Invalid input: expected string, received undefined, you hit the removal of required\_error. This guide to Zod 4 required\_

2h ago · 9 min read · byteorbit.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#zod](https://hashnode.com/tag/zod)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[ByteOrbit](https://hashnode.com/@byteorbit)

@byteorbit

  
[View profile](https://hashnode.com/@byteorbit)

Practical, tested guides for web and backend developers. Full write-ups at byteorbit.tech.

Practical, tested guides for web and backend developers. Full write-ups at byteorbit.tech.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
