-
Notifications
You must be signed in to change notification settings - Fork 28
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
Invalid handler. It should be a function #92
Comments
The issue is that you have not exported a handler function from your |
Thank you, |
Transfered to listhen to improve error |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
h3
1.8.0-rc.2
and1.8.0-rc.3
OSX, with pnpm 8.6
Reproduction
https://stackblitz.com/edit/github-uqdf6b?file=package.json
Describe the bug
The issue occurred when I tried to illustrate a feature request.
When I use listhen since h3 was added with the rc version (the 2nd), I got this following issue:
Code:
Additional context
According to the error message, it is linked with
fromNodeMiddleware
.Here the trace from the function (in h3):
The function is called by listhen even it's not use in the app.
It seems that the type is not the one expected and doesn't match the change made by @danielroe (7e9570)
The handler type is not function but object.
Logs
No response
The text was updated successfully, but these errors were encountered: