How to Solve Discord a Fatal Javascript Error in 2021

How to Solve Discord a Fatal Javascript Error in 2021

How to solve discord a fatal javascript error? Discord is very popular among gamers for chatting with other players and sharing the game experience. But, nowadays, so many users are facing the Discord fatal JavaScript error on Windows 10 computers.

While ing through discussions and Discord forums, I got most of the Discord users going through the same issues, and forums are flooded with this complaint.

Discord A Fatal Javascript Error
Discord A Fatal Javascript Error

What Causes the Discord a Fatal JavaScript Error Occurs? 

There are not several causes behind getting this error. Still, these are the reasons I have shortlisted after going through the conversations with the affected users:

  • Corrupted Discord Settings – In this case, Discord settings get corrupted and cause this error. However, you can quickly fix this issue by resetting the settings of Discord.
  • Quality Windows Audio Video Experience service not running – This service is needed for the program or app’s core functionality. So, if this service is not running and the startup type is not set to automatic, also you can encounter this error.
  • Discord running with the administrator permissions – Discord running with admin privileges is known for the cause of this problem. Hence, make sure to take away the admin permissions from Discord.
Discord A Fatal Javascript Error Occured
Discord A Fatal Javascript Error Occured

How to Fix Discord Fatal JavaScript Error?

Remove Temporary Discord Files in LocalAppData and AppData 

Discord continuously saves the temporary data to support the Discord to run on the system properly. But sometimes, these temporary files build issues and prevent users from opening the Discord on their computers.

Hence, deleting these folders might support you fix the Discord fatal JavaScript error on Windows 10. To apply his answer, go through these steps:

  • First, hit the Ctrl + Shift + Esc keys together to open the Task Manager.
  • Locate and choose Discord in the Task Manager and click on the End Task.
  • Press Windows + R key to open the Run window, then type %appdata% in the text field and click on the OK button.
  • In the Roaming folder, place the Discord folder.
  • Right-click on the folder and select Delete from the context menu.
  • Now, again open the Run window, then type %localappdata% and hit on the OK button.
  • Enter to the Discord folder and right-click on it, then select the Delete from the context menu.
  • Try to launch the Discord setup file once again and catch the steps given in the installation wizard.

This tweak supported many users to fix the Discord JavaScript error. So, surely, it will work for you as well.

Continue Discord Installation Files to the Whitelist of Antivirus Software

We often utilize antivirus programs to protect files or data on our computers from unwanted threats. But, a handful of antimalware/antivirus programs are recognized for blocking programs/applications on the computer.

These antivirus programs even contend with the trusted apps on the computer. So, if your antivirus is blocking Discord from entering its installation or any other files, then you will be going to face the javascript error in Discord.

To fix this problem, you will have to whitelist the Discord files in your antivirus. As mostly, users face this problem with the Avast antivirus software, so here I am going to show you how can you do this in Avast:

  • Right-hit on the Avast icon and select the Open Avast user interface option from the list.
  • Go to the Protection section and hit on the Virus Chest.
  • Now, you can view the files quarantined by Avast. Here place the files associated with Discord.
  • Once you found the files, click on the three dots and select the Restore and add an exception from the list.
  • Perform the same with all the quarantined Discord files.
  • Now, install the Discord once again and verify if the Discord fatal JavaScript error is fixed out or not.

To assure no such problems occur with the Discord in the future, add the Discord executable setup folder to Avast’s exception list. By doing this, you will show Avast that the Discord installation files are not harmful to the system.

So, here are the steps:

  • Open the Avast by following the steps discussed above.
  • Enter the Menu option given on the top-right corner of the Avast window.
  • Now, choose the Settings from the drop-down list.
  • Click on the General.
  • Under the General section, choose the Exceptions option.
  • Hit on the Add Exception and browse the location of the folder that contains the Discord installer.
  • Next, click on the Add Exception.
  • Relaunch the Discord setup.

Modify Startup Type of Quality Windows Audio Video Experience Service

Some users have reported that changing the Quality Windows Audio Video Experience Service’s Startup type from manual to automatic resolved the Discord fatal Javascript error for them. They also reported that it also sets the JavaScript error of other applications.

If you also need to give a try to this trick, then follow these instructions:

  • Press Windows + R key to launch the Run utility.
  • In the Run text field, type services.msc and hit on the OK button.
  • Please find out the Quality Windows Audio Video Experience service in the Services window, then right-hit on it and select the Properties option from the menu.
  • If the Service status is showing started, hit on the Stop button to stop the service and then click on the Start button to start it again.
  • Now, make sure the Startup type is Automatic. If it is not, then hit on the drop-down list and select the Automatic option from the list.
  • Click on the Apply and OK button.

After doing these, verify if the Discord error is resolved or not. If not, then perform for the next solution.

Take Away Administrator Privileges from the Discord

Sometimes, this Discord JavaScript error happens due to the admin privileges given to the Discord. Hence, taking the admin rights away from Discord may help you to remove this error from your computer.

Here are the steps you want to follow to do this:

  • Locate the Discord executable and right-hit on it, and select Properties from the menu.
  • Switch to the Compatibility tab and uncheck the checkbox given near to the Run this program as administrator.
  • Click on the OK button.
  • Lastly, restart your computer.

Use Command Prompt

If none of the solutions helped you remove the Discord fatal JavaScript error from your Windows 10 computer, masking some changes with the Command Prompt might help you fix this error.

  • Press Windows + R key together, type taskmgr, and click on the OK button.
  • Find and choose Discord in the Task Manager and click on the End Task button.
  • Press the Windows + R key, type the control panel and click on the OK button.
  •  In the Control Panel, click on the Uninstall a Program.
  • Locate Discord in the list, select it and click on the Uninstall.
  • After uninstalling the Discord, move to the Local Data and AppData folders. Remove Discord from both of the folders.
  • Press Windows + X key and select Command Prompt (Admin) from the list.
  • In the Command Prompt, type this command and press the Enter key: gpupdate /force
  • Wait until the method gets completed, and then close the Command Prompt.
  • Now, reinstall the Discord and check if the issue is resolved or not.
Author Image

Leave a Reply

Your email address will not be published.