We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
deno serve
The fetch callback handler validation errors when the callback has no arguments.
// main.ts export default { fetch() { return new Response("it works"); }, };
Then run deno serve main.ts
deno serve main.ts
error: Uncaught (in promise) TypeError: Invalid type for fetch: must be a function with a single parameter at registerDeclarativeServer (ext:deno_http/00_serve.ts:547:13) at ext:runtime_main/js/99_main.js:722:21
Version: Deno 1.43.1
The text was updated successfully, but these errors were encountered:
fix: serve handler error with 0 arguments (#23652)
812f2e4
Fixes #23651 Co-authored-by: Satya Rohith <[email protected]>
bartlomieju
satyarohith
Successfully merging a pull request may close this issue.
The fetch callback handler validation errors when the callback has no arguments.
Steps to reproduce
Then run
deno serve main.ts
Error
Version: Deno 1.43.1
The text was updated successfully, but these errors were encountered: