-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Vercel edge middleware targets es2020, which doesn't support top level await #495
Comments
Hello @ibodev1. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Github Repo : https://github.com/ibodev1/ibrahimo.dev/tree/dev |
This is not a minimal reproduction but that may be enough for whoever triaging this |
The issue seems to be Vercel edge middleware. If I disable that then it works fine. It currently builds middleware for es2020, but should probably be fine to update, though I'm not 100% sure what the edge runtime supports. Either way I'll transfer this to the adapters repo and rename |
Vercel Supported Node.js versions My current vercel node version; I hope I helped :) |
Yeah, that's separate. Edge middleware runs on Cloudflare, but with special settings. It should work, but I'd like to check properly before changing the setting. |
Hi @ascorbic , is there any progress on fixing the esbuild issue? Have you checked for compatibility with vercel and cloudflare for trouble-free development? |
@ibodev1 Not yet. If anyone would like to give it a try that could help things along. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome, Brave
Describe the Bug
When I upgraded my project to the latest version of Astro, astro:db started giving errors. The error is available below;
I am try to fix astro config;
and with tsconfig.json file;
But it doesnt working.
What's the expected result?
I am waiting for the project to be built properly and published on the
Vercel
server.Link to Minimal Reproducible Example
https://astro.new/repro
Participation
The text was updated successfully, but these errors were encountered: