Forum Discussion

ed_hickey's avatar
ed_hickey
Copper Contributor
Jan 17, 2021

A Javascript error occurred in the main process ... (on MAC)

Successfully download and install Teams; however it immediately goes to a single error window that says:

 

Clicking on OK, may make exception go away other times it simply does nothing.  I do have O365 installed.

6 Replies

  • mdeyo's avatar
    mdeyo
    Copper Contributor

    ed_hickey 

     

    Apologies for bringing up an old thread, but I wanted to post what fixed the issue for me. I had this problem in February of 2023 and this was the first link in my search.

     

    If you have admin access to your Mac, run the following commands using your terminal:

     

    sudo mkdir -p /Users/$USER/Library/Application\ Support/Microsoft/Teams
    sudo chmod g+w /Users/$USER/Library/Application\ Support/Microsoft/Teams

     

    The first command will create the missing folder, which fixes the Javascript error. If you try to open Teams at this point, it will immediately crash. The second command gives the group access to write to that folder, which fixed the immediate crash and allowed me to use teams.

     

    Hope this helps someone.

     

     

    • gvicioso's avatar
      gvicioso
      Copper Contributor

      Thanks so much. I can't believe a simple two commands solution not be posted by Microsoft team. I've search a lot before find it here. mdeyo 

Resources