How To Fix ‘Discord JavaScript Error’ On Discord

Are you having trouble installing Discord, particularly because of a particularly vexing Discord JavaScript Error? You’re not alone, but don’t worry; we’ve got a solution that will get Discord up and running in no time. Here’s how to resolve the Discord JavaScript Error.

Method 1: Delete Discord Files in localappdata & AppData to Fix JavaScript Error

Discord always saves temporary data on the PC to help it work properly, or, in our case, to cause errors. We need to erase these files to give Discord a clean start when it comes to booting up without the JavaScript Error or any other issues. Take the actions outlined below.

Read Also:

  1. Discord Won’t Open
  2. Windows Key Not Working
  3. Device Descriptor Request Failed

Step 1: To begin, shutdown Discord using the Task Manager (Right-click on the Taskbar and select “Task Manager”, then select the Discord process and click on “End Task”).

Step 2: Then, in the bottom left-hand corner of the desktop, right-click on the Windows Start Menu icon.

Step 3: Select “Run” from the contextual menu that displays.

Step4: In the bottom left-hand corner of the little “Run” window, type “percent appdata percent” into the empty area and click the “Run” button underneath.

Step 5: In the newly opened Windows Explorer window, look for the “Discord” folder. Right-click the folder and select “Delete” from the contextual menu that appears.

Step 6: Go back to the Start Menu and type “Run” again.

Step 7: In the field, type “percent localappdata percent” and press “Run.”

Step 8: Locate the “Discord” folder and delete it using the same method as before by right-clicking on it and selecting “Delete.”

Step 9: Relaunch the Discord setup file and continue the installation wizard’s instructions.

Method 2: In Antivirus Software, whitelist Discord Installation Files

Antivirus programmes have been known to target specific Discord installation files and effectively quarantine them during installation, preventing Discord from accessing them and resulting in the JavaScript Error message.

Antivirus software frequently flags the “Discord voice” application-specific approximate recovery file as possibly harmful. We need to white list the files that an overzealous antivirus is picking up and quarantining in order to go around it.

The procedure varies depending on the software. So, for the sake of offering a realistic example, we’ll use the ever-popular – and free – Avast antivirus.

Step 1: Start Avast by right-clicking on the Avast icon in the system tray and choosing “Open Avast user interface” from the drop-down menu that displays.

Step 2: Once the Avast window is open, go to the “Protection” area among the options on the left side of the screen.

Step 3: To the right, click “Virus Chest.” Here you’ll find any quarantined files.

Step 4: Look for any files related with Discord, which are easily recognised because they usually begin with “Discord_” or a similar variant.

Step 5: Select “Restore and add an exception” from the contextual list by clicking on the three dots that show when hovering over the files.

Step 6: Repeat the process for each file.

Step 7: Restart the installation of Discord.

We need to add the folder holding the Discord setup programme as an exception in Avast to ensure we don’t meet any potential characteristics, issues, or if you haven’t yet installed Discord. This ensures that the installation process goes without a hitch and that no files are accidentally quarantined by Avast Virus Chest.

Step 1: As before, launch Avast.

Step 2: In the top right corner of the Avast window, click the “Menu” button among the options. Then, from the drop-down menu, choose “Settings.”

Step 3: On the left, select the “General” option.

Step 4: From the left-hand menu, pick “Exceptions” under General.

Step 5: Select “Add Exception” and type in or browse to the location of the Discord installer folder.

Step 6: Select “Add Exception” from the drop-down menu.

Step 7: Run the Discord setup programme.

Method 3: Remove and reinstall Discord

The JavaScript problem can occur sometimes when Discord is installed. The best course of action in this instance is to remove and reinstall the application. We also need to delete any residual files to allow for a fresh install, in addition to using Windows 10’s built-in uninstaller.

Step 1: To begin, right-click on the Windows Start menu icon and select Properties. Then, from the drop-down option, choose “Search.”

Step 2: Type “Control Panel” into the search field. Then, in the result field above, click on the first result with the same name.

Step 3: In the Control Panel, hover your mouse over the highlighted “Uninstall a programme” phrase below “Programs.”

Step 4: Select Discord from the list of programmes, then click the “Uninstall” option at the top of the screen.

Step 5: Once the programme has been uninstalled, right-click on the Start Menu and choose “Run.”

Step 6: Click “Run” and type “percent appdata percent.”

Step 7: Locate and delete the Discord folder.

Step 8: Reopen “Run” and type “% localappdata% ” in the search box. Remove the Discord folder from your computer.

Step 9: Go to Discord’s website and get the most recent version of the programme.

Step 10: Double-click the executable file that was downloaded. Follow the installation wizard’s instructions.

Step 11: When you’re ready, start Discord. The method should no longer be disrupted by JavaScript.

Read Also:

  1. 0x80070643
  2. WMI Provider Host
  3. SIM Not Provisioned MM#2 Error


We hope that after reading this post and following our instructions, your Discord JavaScript Error has been resolved. Carefully follow the steps outlined above.

Leave a Reply