New MacBook with Sonoma - won't instal Unity Hub

Just tried to open the Unity Hub on my new MacBook Pro running Sonoma. Getting the message: “A JavaScript error occurred in the main process.”
What to do?

Uninstal unity and prob add a java converter for mac

I think there is on under any Minecraft loader

thats what i did