-
Notifications
You must be signed in to change notification settings - Fork 327
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
The request
type inferred from ExportedHandler
is any
instead of Request
.
#2474
Comments
request
type inferred from ExportedHandler
is any
instead of `Request.request
type inferred from ExportedHandler
is any
instead of Request
.
Can you provide a reproduction (perhaps git repository) that we can use to diagnose this problem? |
I am having the same issue right now. For me |
I did sort of a bisect of wrangler versions x @cloudflare/worker-types. The last version of wrangler that I found compatible with the last working version of worker-types was In other words, One caveat though is that I was testing this against my particular use case, which was with |
I could be wrong but it looks like the issue was introduced about 6 months ago, here https://github.com/cloudflare/workerd/blame/a47804f8bbcd06904bb9eae91e0e6c3ffdc7f6d6/types/defines/pages.d.ts#L4. It looks like |
The @asimpletune Would you be able to provide a reproduction repo that demonstrates the issue? |
Hi! Id love to but I can't for a few weeks. But if you create a new project with the versions I listed above you will see the same results. Although, the version I cited is when the issue was first introduced, so it should be present with wrangler 3.72.0 and its sibling worker types file. Otherwise I can create a new issue when I'm available again, since the issue I brought up is only similar to the OP but not guaranteed to be the same. |
I have encountered the same question |
There's a couple of issues with your setup @yunsii:
"pnpm": {
"overrides": {
"@types/node": "20.8.3"
}
},
After this, the If you have a need for For others experiencing this issue, I'd double check those two things - your |
@Cherry Thanks for your detailed explanation, it is a interesting issue 😄 |
hi all :) for anyone still running into this, please check out @Cherry 's followup comment above. if you are still having problems, please feel free to open a new issue referencing this one with a repro and any additional details and we will revisit and investigate. thanks! |
The text was updated successfully, but these errors were encountered: