edge-runtime icon indicating copy to clipboard operation
edge-runtime copied to clipboard

Does @edge-runtime/types need additional dependencies or settings?

Open IanMitchell opened this issue 3 years ago • 0 comments

Hello! I'm trying to integrate with edge-runtime into my project monorepo, but I'm having a few issues getting started with the types package. When I follow the instructions on the website, I end up with undefined values for Request, CryptoKey, and other Edge Runtime items.

I tracked it down to having "lib": ["ES2021"] in my tsconfig.json, but removing it seems to let Node primitives bubble up. Should I be using the default lib in my TS config to mimic an edge runtime context?

IanMitchell avatar Jul 26 '22 22:07 IanMitchell