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

Not compatible with Next.js edge runtime #185

Open
FleetAdmiralJakob opened this issue Dec 13, 2024 · 4 comments
Open

Not compatible with Next.js edge runtime #185

FleetAdmiralJakob opened this issue Dec 13, 2024 · 4 comments

Comments

@FleetAdmiralJakob
Copy link

Error:

Error: The edge runtime does not support Node.js 'path' module.
│ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime
@CanRau
Copy link

CanRau commented Dec 29, 2024

So it wouldn't work directly on CF Workers :/
Which Vercel is using for their edge runtime I think

@FleetAdmiralJakob
Copy link
Author

I mean that its named after node and not edge runtime but supporting these would be really cool too

@evansiroky
Copy link
Owner

This issue is likely a duplicate of #111 and various other issues. node-geo-tz lazy-loads files during runtime, so whatever bundler or downstream system is used will require some additional configuration such that the raw data files are included.

@FleetAdmiralJakob
Copy link
Author

I think you can't really fix it with some bundler or other tool configuration as the Edge runtime doesn't support the filesystem APIs. If you can I would love to hear from it because that would actually be huge.

Image

https://vercel.com/docs/functions/runtimes/edge-runtime#unsupported-apis

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

3 participants