Im constantly getting error while creating new message state in langraph , please anyone help

please someone help me

Property ‘register’ does not exist on type ‘ZodArray<ZodType<BaseMessage<MessageStructure, MessageType>, ZodTypeDef, BaseMessage<MessageStructure, MessageType>>, “many”>’.

Hi @InterstellarDev-x

could you share your code and what LangGraph version are you using, please?

Same here. I’m using langGrah/LangChain 1.0.1. on node 20. Just replicating the quick start code example

I have the same issue. I discovered that it’s connected to the Zod package version, as register is only supported in Zod v4. I’m happy to share my specific case if that would be helpful.

hi @pippo-sci and @bobbyyng

could you please share your code and and the environment info (package versions, npm etc.)? :slight_smile: