Fix: Discord Javascript Error

Discord is quite a useful tool for gaming as it allows you to use the voice-chat functionality for free without much hassle. The tool is quite popular among the gaming community as it allows unlimited access to its functionality but the tool is not perfect at all.

There are some errors related to “Javascript” which appear when users want to install or run the tool and there is not much information regarding to this error on their official website. However, there are some methods suggested by users who have experienced this error and who were able to fix it. Follow the methods below carefully and check whether one of them will help you in your scenario.

Solution 1: Whitelist Discord Files in Your Antivirus

Some users experienced a situation where their antivirus (Avast in most cases) accidentally quarantined some of the installer files needed for the update or for the installation to finish, thinking it was a potentially dangerous file.

You will have to locate the file and whitelist it in order for the installation process to continue. Follow the instructions below in order to do this with your Avast antivirus.

  1. If Avast is already open, you can locate it at your taskbar, right-click on it and select open. If Avast does not load on startup, you can always start it manually by locating it in Start.
  2. Proceed by selecting Scan >> Scan for Viruses >> Quarantine (Virus Chest). The quarantine button is located somewhere at the bottom of the page.

  1. When you open the quarantine you should notice some Discord-related files. Restore these files and click “Add to Exclusions”. If some of these files have already been generated by the installer, click Overwrite to replace these files and launch the installation again.

In order to prevent this confusion from happening again with a different file, you will need to setup the installer and the tool itself as an exception in the Avast antivirus, depending on whether the error occurred during the installing phase or after it has already been installed.

  1. Open you Avast antivirus by any of the ways we mentioned earlier. After that, navigate to Settings >> Exclusions. This is where users are free to put files which should not be looked after and which should not be scanned or registered as a threat.

  1. Add the installation folder of Discord in order to exclude it from scanning. If the error occurs when installing the tool, navigate to the location where the installer is located and choose it.
  2. After that, close your Avast window and try running or installing Discord again and check to see if the error is gone.

Note: If this whole process doesn’t work, you might need to completely uninstall your antivirus and run the installer again without the antivirus installed. After the installation completes successfully, reinstall your antivirus and continue using the tool.

Solution 2: Fix for Windows 7 Users

This fix was originally created for Windows 7 Server users who have been struggling to run and install Discord, but some users suggested that the same fix can be used to fix this problem on other operating systems and servers. The solutions is pretty easy to follow so don’t waste your time and start now!

  1. Click the Start menu of your Windows Server PC, locate the Computer entry at the right pane, right-click on it, and choose the Manage options. You will need administrator permissions in order to proceed.
    Navigate to Server Manager >> Features and click the Add features option and the right side of the window.
  2. The Add Features Wizard should open up so make sure you locate the “Quality Windows Audio Video Experience” entry on the list, check the box next to it, and click the Next button in order to proceed.
  3. Confirm the Installation and make sure you have selected the QWAVE option. Click the Install button and restart your computer after the process has finished to save the changes made to your computer.

Solution 3: Perform a Clean Reinstall

Performing a clean reinstall is one of the most important methods in this article as this solution has worked for plenty of people who are not running Windows Server and who don’t have the Avast antivirus tool installed. This solution is generic but it’s vital to follow every step correctly if you want to reset your Discord installation and make it work properly again.

  1. First of all, make sure you are logged in with an administrator account as you won’t be able to delete programs using any other account.
  2. Click on the Start menu and open Control Panel by searching for it. Alternatively, you can click on the gear icon in order to open settings if you are using Windows 10.
  3. In Control Panel, select to View as: Category at the top right corner and click on Uninstall a Program under the Programs section.

  1. If you are using the Settings app, clicking on Apps should immediately open a list of all installed programs on your PC.
  2. Locate Discord in Control Panel or Settings and click on Uninstall.
  3. Discord’s uninstall wizard should open, prompting you up with a choice to “completely remove Discord on your computer”. Choose Yes.

  1. Click Finish when the uninstalling process finishes.

After you have uninstalled the tool successfully, it’s time to get rid of several remaining folders which are the usual cause for issues like this. Deleting these folders is the crucial part of the uninstallation process so make sure you do this before proceeding.

  1. Either click the Start button or the search button next to it and type “Run” or use the Windows Key + R key combination in order to bring up the Run dialog box. Type in “%appdata%” and click Enter.

  1. Locate the Discord folder in the folder which opens, right-click on it, and choose the Delete option.
  2. Navigate back to the Run dialog box and type in “%localappdata%”, click Enter and locate the Discord folder which you should delete as well.
  3. Make sure that the folders are completely deleted and that there are no more remaining files in it.

If you managed to uninstall the tool properly and delete the problematic folders, now it’s time to simply reinstall the Discord tool by downloading the latest installer from their website, running it from the Downloads folder, and following the instructions on-screen until the process finishes. The Javascript error should not appear anymore.

Kevin Arrows

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.

Expert Tip

Fix: Discord Javascript Error

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested