Best Ways to Fix Discord Javascript Error

Best Ways to Fix Discord Javascript Error

/ Sed Galope

Getting a Javascript error on Discord can be a very annoying experience. Thankfully, there are several ways to go about this issue. Fix your Discord today with these easy-to-follow guides.

Installing Discord is typically pain-free. You simply need to download the client from your favorite browser then you can start downloading your games of choice.

Automatically Repair Discord Errors
Windows 10
System Information
  • Your machine is currently running Windows 10
  • Fortect is compatible with your operating system.

Recommended: To repair Discord Errors, use this software package; Fortect System Repair. This repair tool has been proven to identify and fix these errors and other Windows problems with very high efficiency. Download Fortect here.

Download Now
Fortect System Repair
Norton Digicert
  • 100% safe as confirmed by Norton.
  • Only your system and hardware are evaluated.

However, there will be times when downloads won’t go as smoothly as expected. In this article, we will take a look at the easiest ways to solve Discord JavaScript errors.

First Method – Completely remove Discord Files in Localappdata & Appdata

To help your computer run smoothly, Discord typically stores temporary data within your PC. These stored files will sometimes cause problems when you install new games or run Discord. To fix this issue, you simply need to clear Discord by deleting these files.

  1. Make sure to close your Discord Client.
  2. Access your task manager by pressing “Control+Shift+Esc”. Next, select Discord and click “End Task”.
image 289

  1. Open the run command line by holding down the “windows” and “R” keys.
  2. Once your Run window is open, type in “%appdata%” and click OK.
image 292
  1. Locate and right-click the Discord folder and select “Delete”
image 294
  1. Exit the window and open your Run window again by right clicking the Windows icon.
  2. Restart your Discord setup file and follow the steps detailed by the installation wizard.

Second Method – Check your Antivirus Software and Whitelist

There are several antivirus software that may target some Discord installation files. As a result, parts of your installation files may be quarantined and cause a Discord Javascript error.

For example, “discord_voice” is a common file that some antivirus software may consider dangerous. To fix this issue, you need to manually bypass the antivirus by whitelisting the files that it is isolating.

Note: the process may change from one antivirus to another. In this article, we are sharing the way to bypass Windows Defender.

  1. Open up Windows Defender by clicking on the Windows start button and type “Windows Security” in the search bar. Press “enter” on your keyboard or click “open” below the Windows Security icon.
image 296
  1. Under the “Virus & Threat Protection Settings”, Click on the “Manage Settings”.
image 298
  1. Under “Exclusions” click on “Add or remove exclusions”
image 300
  1. Choose “add an exclusion” and click “file”. Next, you need to select the Discord.exe and click “Open”.
image 302

To avoid potential issues when you install and use Discord, you need to add the folder that includes the “Discord setup executable as an exception in Windows Defender”. This will ensure that the installation process will be completed without you experiencing any other errors. Follow these steps:

  1. Click on the shield icon in the task bar or search for Defender in the start menu to open the Windows Security app.
image 304
  1. Under the “Virus & Threat Protection Settings” click on the “Manage Settings”.
image 306
  1. Under Exclusions, click on “Add or remove exclusions”.
image 308
  1. Click “add an exclusion”, select “Folder” and choose the folder where Discord.exe is located and click open.
image 310

5. Once you have completed the above steps, open Discord once again and check if the problem has been fixed.

Third Method – Uninstall & Reinstall Discord

Another good way to just get rid of Discord Javascript error is to just completely uninstall and reinstall the program. You also need to use Windows 10’s built-in uninstall utility to delete any remaining files to allow a fresh installation.

1. Open the run command window by holding down the “windows” and press “R” keys. Type in “appwiz.cpl” and press “enter” to bring up the Programs and Features.

image 312
  1. Locate and Click Discord among the list of programs. Click the ‘’Uninstall’’ button at the top of the list.
image 314
  1. Once the program is uninstalled, download the latest version of Discord from the official website.
  2. Double-click on the downloaded file. You can follow the installation wizard instructions.
  3. You can now relaunch Discord and confirm if the issue has been fixed.

Final Thoughts

Discord Javascript error can be very frustrating especially if you are ready to download and try the best games online. Thankfully, the steps mentioned above are the best solutions to this error.

Make sure to check our other guides for more Discord error fixes.

Sed Galope
Meet the author

Sedfrey is an experienced writer and editor. He's also a PC hardware and gaming enthusiast. In his spare time, he enjoys reading about the latest innovations in the PC market and finding fixes to hardware and software errors.