Skip to content

TypeError: undefined is not an object (evaluating 'value.schema.noValidate') in compose.ts #1193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ngankt2 opened this issue May 6, 2025 · 1 comment
Assignees
Labels
bug Something isn't working review Waiting for issue reporter approval

Comments

@ngankt2
Copy link

ngankt2 commented May 6, 2025

What version of Elysia is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

I'm encountering a TypeError when using Elysia. The error message is:

TypeError: undefined is not an object (evaluating 'value.schema.noValidate')
    at response (/app/node_modules/elysia/src/compose.ts:244:29)

This happens during request handling, but it's unclear what causes it. The error seems to indicate that the code is trying to access schema.noValidate on an undefined value object, possibly within a middleware or response handler.

I'm not explicitly passing anything related to schema.noValidate in my route definitions.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

No response

@ngankt2 ngankt2 added the bug Something isn't working label May 6, 2025
@SaltyAom
Copy link
Member

SaltyAom commented May 8, 2025

Should have been fixed updating to 1.3.1.

Let me know if this works.

@SaltyAom SaltyAom self-assigned this May 8, 2025
@SaltyAom SaltyAom added the review Waiting for issue reporter approval label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working review Waiting for issue reporter approval
Projects
None yet
Development

No branches or pull requests

2 participants