How to Fix a Discord Javascript Error on Startup

Discord has grown in popularity over the years, thereby increasing the number of people receiving Javascript errors.

Javascript powers user interactivity online and helps control where a person goes when they click on a link or otherwise interact with a site. Javascript errors can create unexpected results and hinder an individual’s experience online.

Fortunately, if you get a Javascript error message, then it’s usually easy to fix – we will walk you through how to do so below. 

How to Fix a Discord Javascript Error on Startup

If Discord won’t open, then typically it’s not actually a Javascript error – the cause of the Discord error usually lies elsewhere.

However, if you’re sure that JS is causing the issue with your installation process, there are a few things you’ll want to try. This ranges from simply uninstalling and re-installing Discord through to adjusting your settings.

There is no one way to fix a Discord Javascript error, so see which one you want to try first – you can follow the below steps mentioned if you want to run through the potential major reasons why you may be having issues.

Uninstall and then Reinstall Discord

It is a classic way of fixing any program and is no different for Discord. You don’t want to just delete a Discord server – you want to completely uninstall and then re-install the app afterwards yourself.

To completely remove Discord from your device, you can;

  1. Open the “Start” menu on your computer and click on “Search”
  2. In the Search bar, type in “Control Panel,” and search
  3. In your search results, click “Uninstall the Program” in the control panel
  4. Look for the “Discord” name under all your stored programs, then click on it and select “Uninstall.”
  5. Once the program is uninstalled, right-click on the “Start” menu and select “Run.”
  6. You will see an “Open” box with a search bar next to it, where you will type “%appdata%” before clicking on “Run.”
  7. Delete the Discord installation folder
  8. Once again, you will see the “Open” box with the search bar, where you will type in “%localappdata%,” click on “Run,” and then delete the Discord folders again.
  9. Finally, go to the official Discord website, where you can install the newest version.

Doing this will completely clear your cache and any saved data that your program has saved over time, as the appdata folder stores this information – Discord stores temporary data, which over time can build up and end up causing errors.

Change your Windows Audio Video Experience Settings

For Discord to run, you need quality audio and video settings on your computer, and sometimes, you just need to change the settings from Manual to Automatic.

  1. Use the key combination “Windows + R” to open a “Run Dialog box.
  2. Type in “services.msc” and press “Enter,” which will open the Services toolbox
  3. Locate the “Quality Windows Audio Video Experience” and right-click on it, which will take you to another menu.
  4. Select “Properties” in the new menu
  5. Clicking on the “Stop” button in the new menu should stop your Discord program from running, while clicking on the “Start” button will help it re-run.
  6. To switch your settings, check for the “Startup” drop-down menu in this same window, and then set your settings to “Automatic” instead of “Manual.”

How to Fix a Discord Javascript Error in Windows

This Javascript issue is actually quite a common one specifically if you’re running an older version of Windows.

If you are specifically running Discord on a Windows 7 computer, maybe these steps will help resolve the issue.

  1. Open the “Start” menu and go to “Computer”
  2. Right-click on “Computer” and select “Manage”
  3. You will now see the server manager, where you can find the “Add features” option
  4. Under the “Add features” window, you should see the Quality Windows Audio Video Experience, where you should click on “Next.”
  5. Click on the “QWAVE” option to confirm the installation
  6. Click the “Install” button.
  7. Once the app has installed completely, restart your computer

Check if Your AntiVirus Program is Causing the Issue

As tends to be the case with lots of PC programs, antivirus programs might be a little overprotective of your computer.

You can go into your antivirus program’s quarantine vest to see if any Discord files have been filed away there.

  1. Click on your antivirus protection program (for this example, we will use Windows Defender Security Center).
  2. Click on “Virus and threat protection”
  3. Click on “Threat history” and then “See full threat history” to see if your antivirus software has detected anything recently
  4. Once again, if there are any Discord files in the quarantine, they will have the Discord name attached to them.
  5. If you see a Discord file in the quarantine, you can select the arrow-down button across from the file, where you can click on “Allow” to restore them back to your computer. 

You’ll need administrator privileges to do this properly – though it’s not the main process you may need to get Discord working as it should, it’s always worth checking.

Delete Temporary Data Discord Files

Discord runs temporary data on your computer to help the program run better. Sometimes those files become corrupted and slow down the program. So, deleting those files may help if a Javascript error occurred in your Discord client.

You will find these steps are quite similar to the above process for deleting discord altogether to reinstall.

  1. Make sure Discord is closed in your Task Manager
  2. Right-click on the “Start” button and select the “Run” option in the pop-up menu
  3. In the pop-up open field, type the command “%appdata%,” and click “Run”
  4. A window will appear where you can locate the “Discord” folder, right-click, and delete. 
  5. Repeat steps 1-4, except you will type “%Localappdata%” in the open field before clicking “Run”
  6. Relaunch the Discord setup file to reinstall the software

You may also want to whitelist Discord installation files too, as they can also cause a fatal Javascript error when you’re trying to run Discord.

Discord Fatal Javascript error – Final Thoughts

It is frustrating when your Discord program produces a Javascript error, but there are plenty of ways to go about fixing it. You can usually fix annoying errors in the Discord app relatively easily.

It might take a little time, but it is sometimes a matter of deleting extra data, ensuring your antivirus program has not caught anything, or sometimes just reinstalling Discord as a last resort. You will need administrative privileges for some of these tasks,

Photo of author

Connect: Insta



Edward brings years of experience in a variety of different fields including online marketing & No-code app development, and he's been investing in stocks and cryptocurrency since 2016. Outside of work you'll usually find him watching movies at the local cinema or playing games in the Apple Arcade.

Read more from Edward

Apps UK
International House
12 Constance Street
London, E16 2DQ