IncomingMessage
and ServerResponse
not assignable to CompatabilityEvent
#13683
Labels
IncomingMessage
and ServerResponse
not assignable to CompatabilityEvent
#13683
Environment
❯ npx nuxi info
Nuxt CLI v3.0.0-27489107.7379184
RootDir: /home/projects/github-8rmpp2
Nuxt project info:
Linux
v16.14.2
3.0.0-27489107.7379184
[email protected]
vite
-
-
-
Reproduction
https://stackblitz.com/edit/github-8rmpp2?file=server/api/test.ts
Describe the bug
When typing
req
andres
in an api handler as described in the docs hereIf you attempt to follow the examples for passing
req
into any of the h3 utilities such asuseBody
,useQuery
oruseCookie
or similarly passres
into relevant utilites likesetCookie
you will be met with the following error.Unclear if this should be raised here or in the h3 repo, please let me know if the latter and I will raise over there.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: