How do I fix teams when a "JavaScript error ocurred in the main process" appears?

Hand Therapy 11 Reputation points
2022-11-02T21:39:04.913+00:00

I have been working with Teams with no problem. Today I am trying to open it and I get "JavaScript error occurred in the main process" I have been trying everything I know (Task manager, restoring the computer, etc) and nothing happens.

Microsoft 365 and Office Development Office JavaScript API
Microsoft Teams Microsoft Teams for business Other
{count} votes

3 answers

Sort by: Most helpful
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2022-11-02T21:45:21.473+00:00

    Hi @Hand Therapy

    Please try the following:

    1) Open Control Panel > Uninstall a program
    2) Locate latest Microsoft Visual C++ (64bit) and click on Change (If you're using 64 bit version of Teams, maybe you need x86)
    3) Click on Repair
    4) Enter your Admin credentials to perform repair
    5) Once repaired Launch Teams app to make sure it works

    Cited from https://techcommunity.microsoft.com/t5/microsoft-teams/windows-a-javascript-error-occurred-in-the-main-process/m-p/1417805 (by d112296a)


    If this is helpful please accept answer.

    1 person found this answer helpful.
    0 comments No comments

  2. Ivan Bútora 81 Reputation points
    2022-11-03T01:01:04.087+00:00

    What's your operating system?
    The issue has been encountered beginning with the latest version 1.5.00.28567 on Windows 7.
    It is mentioned here:
    https://feedbackportal.microsoft.com/feedback/idea/89be9dfc-e95a-ed11-a81b-000d3a7e4185
    If you are not running Windows 7, in addition to the link provided by @Dillon Silzer , you can try some more suggestions here:
    https://answers.microsoft.com/en-us/msoffice/forum/all/microsoft-teams-javascript-error-occured-in-the/e00e77b3-43ac-4e17-a433-5bb6f115a7cc

    0 comments No comments

  3. JimmyYang-MSFT 58,641 Reputation points Microsoft External Staff
    2022-11-03T08:48:51.687+00:00

    Hi @Hand Therapy

    What is your operating system?

    Teams client now support these systems:

    • 32-bit and 64-bit versions of Windows (8.1 or later, excluding Windows 10 LTSC)
    • ARM64 for Windows 10 on ARM
    • Windows Server (2012 R2 or later)
    • macOS
    • Linux (in .deb and .rpm formats)
    • Chrome OS

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.