-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
📜 Description
Unable to use with Zod 4.
rawValue: {
triggerEventRequestDto: {
workflowId: 'submitted-resource-user-message',
to: [Object],
payload: [Object]
},
idempotencyKey: undefined
},
rawMessage: 'Input validation failed'
}
SDKValidationError: Input validation failed: TypeError: Cannot read properties of undefined (reading '_zod')
at safeParse (webpack-internal:///(action-browser)/./node_modules/@novu/api/lib/schemas.js:37:33)
at $do (webpack-internal:///(action-browser)/./node_modules/@novu/api/funcs/trigger.js:57:47)
... 22 lines matching cause stack trace ...
at async Server.requestListener (/Users/cortexbay/Documents/School360/school360dev/node_modules/next/dist/server/lib/start-server.js:141:13) {
cause: TypeError: Cannot read properties of undefined (reading '_zod')
pm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving:
npm ERR! Found: zod@4.0.17
npm ERR! node_modules/zod
npm ERR! zod@"^4.0.14" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer zod@"^3" from @novu/api@1.5.0
npm ERR! node_modules/@novu/api
npm ERR! @novu/api@"1.5.0" from the root project
👟 Reproduction steps
- Update to Zod4
- try to send a message or update novu/api package
👍 Expected behavior
- work as expected, currently unable to use
👎 Actual Behavior with Screenshots
- nothing works
Novu version
1.4.0 - Novu SaaS
npm version
No response
node version
No response
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
- I checked and didn't find a similar issue
🏢 Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to submit PR?
None