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.
2 Replies
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 :\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