cli
cli copied to clipboard
Better error message when deno is not supported on current system
Which problem is this feature request solving?
Currently it displays this:
Describe the solution you'd like
Instead display just a warning that edge functions will not work on the current system.
Deno only works on x64 on Win, linux, mac arm64 on mac
Pull request (optional)
- [X] I can submit a pull request.
The build message "There was a problem setting up the Edge Functions environment" is indeed not very helpful, and the corresponding message during deploy also leaves room for improvement:
I am running netlify-cli in a docker container on a Mac M1, hence the aarch64. For those doing the same, it could be helpful if the error message reminded them about what architecture and platform they're actually running; Like in my case, the problem is Deno for Linux only have an executable for x64, not aarch64.
Like in my case, the problem is Deno for Linux only have an executable for x64, not aarch64.
Perhaps not: The netlify-cli still fails build with edge functions on a Mac M1 even when running the docker container with platform: linux/amd64
Fixed in https://github.com/netlify/build/pull/6708. Releasing soon.