Skip to content
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

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

Closed
IanMitchell opened this issue Jul 26, 2022 · 1 comment
Closed
Labels
question Further information is requested

Comments

@IanMitchell
Copy link
Contributor

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?

@Kikobeats
Copy link
Member

Hey @IanMitchell, sorry for the late response.

It should be work if you use the specific types package:
https://edge-runtime.vercel.app/packages/types.

Since this issue is from some time ago, I'm going to assume it's resolved with that.

Ping me back if something is not working as you expect 🙂

@Kikobeats Kikobeats added the question Further information is requested label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants