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

Build error in next.js when using runtime = 'edge' #745

Open
porcellus opened this issue Nov 17, 2023 · 0 comments
Open

Build error in next.js when using runtime = 'edge' #745

porcellus opened this issue Nov 17, 2023 · 0 comments

Comments

@porcellus
Copy link
Collaborator

This causes an error: Module not found: Can't resolve 'zlib' (same for querystring and crypto) during building and running in dev mode.

Reproduction:
Using our nextjs example, add

export const runtime = 'edge';

to the user route https://github.com/supertokens/next.js/blob/canary/examples/with-supertokens/app/api/user/route.ts reproduces the issue.

Reported in: https://discordapp.com/channels/603466164219281420/1173443361550643250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant