Open kravetsone opened 4 months ago
still occured(
as a workaraound for:
const response = new Response("ok"); // error ar build time like in issue
u can cast it type to Response
and idk why it solve the issue
const response = new Response("ok") as Response; // no error at build time
Checklist
node-resolve
are known to cause issues..d.ts
files generated by TypeScript. The plugin can consume.ts
and even.js
files (withallowJs: true
), but this is known to cause issues.@types
. The plugin ignores these by default, unlessrespectExternal
is set.@types
can contain hand-crafted code which is known to cause issues.Code Snipped
Error Message
undici-types
used by@types/node
and in dependencies source code it looks likeimport("undici-types").Response