Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Mac OS erros opening all hApps #148

Open
Gitit-Good opened this issue Mar 18, 2023 · 3 comments
Open

Mac OS erros opening all hApps #148

Gitit-Good opened this issue Mar 18, 2023 · 3 comments

Comments

@Gitit-Good
Copy link

I downloaded Holochain launcher onto my mac OS Catalina 10.15.7 and I'm getting a blank window (sometimes white, sometimes grey) or a spinning wheel with every hApp I've downloaded so far:

Talking-Stickies:
Screen Shot 2023-03-17 at 10 54 55 PM

Snap Mail:
Screen Shot 2023-03-17 at 11 00 49 PM

Herddit:
Screen Shot 2023-03-17 at 11 05 40 PM

gather:
Screen Shot 2023-03-17 at 11 07 47 PM
with a little spinning wheel of death
Screen Shot 2023-03-17 at 11 07 25 PM

Glassbeadgame:
Screen Shot 2023-03-17 at 11 12 37 PM
with this little graphic and its own spinning wheel of death
Screen Shot 2023-03-17 at 11 11 14 PM

Just wondering if it is something wrong with my computer or Launcher download or if there is just a separate bug in each one of these hApps?

@matthme
Copy link
Collaborator

matthme commented Mar 18, 2023

Hi @Gitit-Good, thanks for this elaborate report! I think all of those are problems of browser compatibility. To give more context, the Holochain Launcher is built with tauri which means that it uses whichever webview (browser) is built into the operating system (WebKit/Safari on Linux/macOS and Edge on Windows). On macOS Catalina 10.15.7 it therefore uses Safari 13.1.3 as you can see from this table. So a way to fix it may be that those apps build their code for older browser targets. I will check whether I can try that with one of my apps.
A way that you could probably "fix" it yourself, if that's possible on your hardware and you are fine with it, is that you would upgrade your mac OS to a newer OS version (I usually test the Launcher on Big Sur because that's what I have available and those apps seem to work fine there).

@Gitit-Good
Copy link
Author

Thanks @matthme! Good to know. I just looked into it and apparently my Early 2013 Macbook Pro isn't compatible with Big Sur. Guess I'm just SOL for the meantime. Ah well, hopefully some of the hApps might be made back-compatible with earlier OS's at some point. Thanks for the help!

@matthme
Copy link
Collaborator

matthme commented Aug 10, 2023

For the record, things that we have tried so far (and didn't work):

  • build app with @vitejs/plugin-legacy and target safari11
  • build app with build target safari 11 in vite.config.ts
  • build app with vite 3.2.7 since vite 4.X apparently dropped support for older safari versions
  • inject @babel/polyfill (link) into the app window via tauri's initialization_script

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants