How do i fix javascript errors in microsoft teams?

Hello Everyone,

While installing Microsoft Teams, the error message described in the subject line is thrown.

Am running Microsoft Windows Version - 1909

A couple of troubleshooting tips found on //docs.microsoft.com/en-us/MicrosoftTeams/troubleshoot-installation have been tried but the error still shows up.

Any idea on how to resolve this issue will be greatly appreciated.

UPDATES

I did a comparison of 2 SquirrelSetup.log files. [Both PC runs Windows 1909 and the same build number.

The PC 1[Throwing up the JavaScript error above]logged some issues not found in the PC 2 as shown below:

----start----

ApplyReleasesImpl: Couldn't run Squirrel hook, continuing: C:\Users\Administrator\AppData\Local\Microsoft\Teams\current\Teams.exe:
System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException[]
at Squirrel.Utility.c__DisplayClass11_0.b__0[]
at System.Threading.Tasks.Task.InnerInvoke[]
at System.Threading.Tasks.Task.Execute[]
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess[Task task]
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotificat ion[Task task]
at Squirrel.Utility.d__11.MoveNext[]
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess[Task task]
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotificat ion[Task task]
at
Squirrel.UpdateManager.ApplyReleasesImpl.c__DisplayClass18_1.d.MoveNext[]

---end----

FURTHER UPDATES

Many suggestions found on GitHub, Microsoft support site, blogs and other websites have been tried. So after spending several hours googling and searching for a working solution, the following finally worked on the PC in question.

  • A standard user account was created on the PC.
  • Downloaded a new Microsoft teams app.
  • In services.msc, the status of a service called Quality Windows Audio Video Experience was also manually started.
  • Executed the app and no JavaScript error was thrown.

N.B: I am still not satisfied with this fix, cos i applied the same troubleshooting approach on another PC throwing up the same JavaScript error, and the fix doesn't work on it. :]

Home/Windows 10/Windows 10 Troubleshooting/Javascript Exception Error in Microsoft Teams on Windows 10

JavaScript Exception Error in Microsoft Teams has been reported multiple times on online support forums as well as on Microsoft Support Community. It mostly occurs in one of the two situations: when a user tries to run Microsoft Teams set up or when a user tries to run Microsoft Teams software. The error notification is as follows:

Error Notification

What Causes Javascript Exception Error in Microsoft Teams?

We have listed down a few causes of the problem after reviewing the user’s feedback and technical authorities in detail. The root causes for this error may be vague in nature but the most reported possible reasons in the online community, have been listed down below. The list is as follows:

  • Out-dated Microsoft Office 365: The most common and frequent cause of this error as reported on different online forums was that users were trying to install MS Teams with an older version of Microsoft Office 365.
  • Out-dated Microsoft Windows: Users have reported frequently that this error develops because users install MS Teams on an outdated or unsupported version of Microsoft Windows [Windows 7 or earlier version of Windows].
  • Out-dated Microsoft Visual C++ Runtime Libraries: Many online forums have reported that users running on outdated versions of Microsoft Visual C++ Runtime Libraries, encounter this error. It might sound odd but all these Microsoft applications have some interlinked architecture and support one another.
  • Administrator Account: In some cases, it has also been reported that this error occurred when users were not using an administrator account on their computer while using Microsoft Teams.

Solution 1: Update Microsoft Visual C++ Runtime Libraries

The MS Teams JavaScript Exception issue can be solved by reinstalling Microsoft Visual C++ to the latest version, as per feedback available online. Follow the steps given below to uninstall outdated versions of Microsoft Visual C++ Runtime Libraries and then reinstall the latest versions:

  1. Press the Windows Key + R keys on your keyboard to open Run dialog box.
    Opening Run dialog box
  2. Type appwiz.cpl and click OK. This will take you to the list of all installed programs on your PC.
    Opening Installed Programs List
  3. Locate all Microsoft Visual C++ programs in the list, select them, and click Uninstall. This will start a series of uninstallation wizards running back to back. Wait until the process gets completed.
    Uninstalling Microsoft Visual C++ Runtime Libraries
  4. Download a fresh updated copy of Microsoft Visual C++ Runtime Libraries from the Official Microsoft Support Webpage and then install them. This should fix your problem.

Solution 2: Clean Uninstall & Reinstall MS Teams

If installing the latest versions of Microsoft Visual C++ Runtime Libraries didn’t fix your problem then there is a strong possibility that some of the MS Teams system files are corrupted. The easy fix would be to completely uninstall MS Teams and reinstall the latest fresh copy. Follow the steps given below to do so:

  1. Close MS Teams by right-clicking the MS Teams icon in the taskbar and select Quit. This will end all the background ongoing processes related to MS Teams.
  2. Right-click on Start and select Control Panel to open it.
    Opening Control Panel
  3. Select Uninstall a program under the Programs section. This will take you to the list of all installed programs on your PC.
    Opening Installed Programs List
  4. Select Microsoft Teams from the list of installed programs and click Uninstall. This will start uninstalling MS Teams. The procedure may take time so wait until it gets finished.
    Uninstalling Microsoft Teams
  5. Press Windows + R keys on your keyboard to open Run dialog box.  Type %appdata% and click OK. This will take you to a hidden folder named AppData where user data is stored for different applications installed on your PC.
    Opening AppData Folder
  6. Open Microsoft folder, right-click on Teams folder and select Delete.
    Deleting MS Teams Folder
  7. Close all windows and again press Windows + R keys on your keyboard to start Run. Type %Programdata% and click OK. This will take you to a hidden folder named ProgramData where program related settings or data is stored.
    Open ProgramData Folder
  8. Repeat step 6. Now you have finally uninstalled Microsoft Teams completely from your computer.
  9. Download a fresh updated copy of Microsoft Teams desktop setup from the Official Microsoft Teams Download Webpage and then install it. This should finally fix your problem.
    Downloading MS Teams [desktop] Setup

Read Next

  • Microsoft Teams Users: 3×3 Grid View Is Nice, But A 5×5 View Is What We Need For…
  • How to Fix the 'A JavaScript Error Occurred in the Main Process' Error in…
  • [FIX] HughesNet Usage Meter JavaScript Error
  • Fix: Could not Access Javascript / VBScript Run time for Custom Action [2738…

Kevin Arrows

  • Network Engineer [LAN/WAN] |
  • Twitter
  • LinkedIn

Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

How do I get rid of script errors in Microsoft Teams?

In the Internet Properties window, click Advanced tab. Uncheck the Display a notification about every script error option. Make sure Disable script debugging [other] and Disable script debugging [Internet Explorer] options are checked. Click Apply to save the changes.

How do I fix JavaScript errors?

Fix JavaScript errors.
Open the demo webpage JavaScript error reported in the Console tool in a new window or tab..
Right-click anywhere in the webpage and then select Inspect. Or, press F12 . ... .
Click the Open Console to view errors button on the top right. ... .
Click the error..

Does Microsoft Teams use JavaScript?

This JavaScript library is part of the Microsoft Teams developer platform. See full SDK reference documentation.

Why do I keep getting a JavaScript error?

Grammatical mistakes, such as missing parentheses or unmatched brackets, are the major causes of syntax errors in JavaScript. For example, when you must use conditional statements to address multiple conditions, you may miss providing the parentheses as required, leading to syntax flaws.

Chủ Đề