Open agungyuliaji opened 1 year ago
Ah, interesting! This is because we've just changed how the server is bundled here, moving from the npm approach (which was using a wildly out of date server, and basically running straight from dev sources etc) to automatically pulling & launching the official releases directly.
Unfortunately though, there's no official arm64-specific releases. The quick fix for now is to run the server independently (see the server README) and then just run npm run start:web
here, to run the UI without automatically starting a server. That should behave pretty much identically to what it was doing before.
The real issue here is https://github.com/httptoolkit/httptoolkit/issues/371 - the server is not officially built for darwin-arm64 at all yet, it just runs via Rosetta 2 instead. As you've discovered, it is possible to run from source, it's just that the deployment pipeline for all that doesn't fully exist yet (PRs towards the steps in that issue are welcome!).
As an alternative, if the built x64 releases do work fine for you (they should, via Rosetta) then it might be possible to do a quick workaround to still use npm start
directly by overriding the architecture downloaded in this situation, and automatically downloading the darwin-x64 version when running on darwin-arm64, for now until https://github.com/httptoolkit/httptoolkit/issues/371 is completed. The script that sets up the dev server for this repo is in https://github.com/httptoolkit/httptoolkit-ui/blob/main/automation/setup-server.ts - PRs for that quick workarounds there to solve this for M1 Macs are welcome.
it was fine for commit
07c8da06caf467def52b2da6086a2a72b74b7a20
(when I first cloned this) But after pull latest update i get this error: there is a missing build for darwin-arm64