Cannot find close to nothing: console, fetch, Response, HTMLRewriter etc…

As the screenshot shows, I cannot use my program because it cannot find these interfaces. It also appeared seemingly out of nowhere. Has anyone faced this problem and knows a solution? Thanks.
No description
2 Replies
Stonepilot56
Stonepilot56OP2mo ago
It turns out that now you have to import them, so the problem was solved by adding import { HTMLRewriter, Request, Response, fetch } from "./workers-types.js"; import { console } from "./workers-types.js"; at the top. EDIT: It fixed by itself, without usage of aforementioned imports :\
Walshy
Walshy2mo ago
yeah you shouldn't need to import anything, the tsconfig should be making these available by default -- let us know if you hit that again
Want results from more Discord servers?
Add your server