cli icon indicating copy to clipboard operation
cli copied to clipboard

Better error message when deno is not supported on current system

Open danez opened this issue 3 years ago • 2 comments

Which problem is this feature request solving?

Currently it displays this:

screenshot_2022-10-18_at_11 31 13

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.

danez avatar Oct 21 '22 08:10 danez

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:

Screen Shot 2023-03-11 at 3 27 13 PM

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.

njordhov avatar Mar 11 '23 23:03 njordhov

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

njordhov avatar Mar 15 '23 00:03 njordhov

Fixed in https://github.com/netlify/build/pull/6708. Releasing soon.

serhalp avatar Oct 21 '25 23:10 serhalp