How to Fix Discord JavaScript Error
محتويات
Discord is a very important app as it is now used by more than 140 million monthly active users; it is used by individuals, schools, universities, and organizations. Further, with its unmatched flexibility and thanks to its lightweight nature, it is very popular among gamers and streamers.
Just like any app, Discord has its own issues and faces its own errors. One of the said issues is the Discord JavaScript error. To understand how to fix the JavaScript error Discord, we should first understand the error and how it happens.
Why Does the Discord JavaScript Error Happen?
The Discord JavaScript error appears when starting up Discord on your computer. Unfortunately, there is hardly any information about the source of the error. However, the error message window usually comes with information that might lead to understanding the error, but it almost can never be interpreted by casual users.
We have here some possible reasons for the Discord JavaScript error and a brief of the solutions.
- Discord may have gone corrupt – You will either need to reset Discord or reinstall it.
- There is an issue with the Quality Windows Audio Video Experience service – This is a vital part of the Discord app; if it's not running correctly, it will cause issues to arise. So make sure it is running.
- Administrator permissions are running Discord – You will need to disable this option.
However, for now, you don't have to understand everything about the error in order to be able to fix it; we have below a few methods to fix the Discord JavaScript error.
Save Money on Gaming With IPVanish
How to Fix the Discord JavaScript Error
1. Delete Discord Files In Localappdata & Appdata
Discord regularly stores files that are supposed to help it run but instead cause issues. Deleting these folders will result in resetting the Discord app and, hopefully, fixing the JavaScript error Discord has. To do so, there are a few steps to follow:
- Right-click on the Taskbar > go to Task Manager > Discord process > End Task.
- Right-click on the Windows Start menu icon > select Run.
- Enter %appdata% and click on the "Run" button.
- In the contextual menu that just appeared, select ”Run.”
- Return to the Start menu > load up ‘’Run’’ once more > type ‘’%localappdata%’’ in the field and click ‘’Run.’’
- Find the Discord folder > right-click on it and select "Delete."
- Relaunch the Discord setup file.
- Follow the on-screen instructions.
2. Change the Startup Type of the Quality Windows Audio Video Experience Service
- Click on the Windows key, and the R key > go to "Run."
- Type in "services.msc" in the box (without the quotation marks) > click "OK."
- Find the "Quality Windows Audio Video Experience" from the list > right-click on it > select Properties.
- If the service is running, stop it by clicking on "Stop."
- Run it again by clicking on "Start."
- Set the service's properties to "Automatic" from the Startup type menu.
When you click on start, you might receive the following message:
"Windows could not start the service on Local Computer. Error 1079: The account specified for this service differs from the account specified for other services running in the same process."
If you receive this message, you should follow these steps:
- Click on the Windows key, and the R key > go to "Run."
- Type in "services.msc" in the box (without the quotation marks) > click "OK."
- Find the "Quality Windows Audio Video Experience" from the list > right-click on it > select Properties.
- Navigate to Log On > click on Browse.
- Under the box titled "Enter the object name to select," type in your account name > click on Check Names.
- Click OK > type in the password in the "Password" box.
- It should now start with no issues.
3. Whitelist Discord Installation Files
Some antivirus software services target the Discord installation files and blacklist them or flag them as "potentially dangerous," preventing them from running. This results in Discord being unable to access these files and, accordingly, results in the Discord JavaScript error. One example of these files is the ”discord_voice.”
To make this easier, we will provide one example, using the Avast Antivirus to whitelist Discord's installation files.
- Open up Avast > click on Protection.
- Click on Virus Chest > you will see a list of any blacklisted files.
- Find all the Discord files (they all start with "discord_").
- Hover over the files and click on the three dots that appear > select "Restore and add an exception."
- Do this for all of the files.
- Restart the Discord installation process.
To avoid this in the future, add the Discord files to Avast's "exceptions." You can do this by following these steps:
- Open up Avast.
- Click on Menu > select Settings > click General.
- Select Exceptions.
- Click Add Exception > find the Discord folder > click Add Exception.
- Launch the Discord setup executable.
4. Run Discord without Administrator Privileges
Many users reported that the Discord app works when they are not running it using their administrator account. To ensure this, follow these steps:
- Locate the Discord executable > right-click its entry on the Desktop to change its properties.
- Navigate to Compatibility > uncheck the box next to Run this program as administrator.
- You might get some dialogue boxes; make sure to confirm any changes.
- Discord should launch without admin privileges after that.
- Check if the error is still there.
5. Reinstall Discord
You need to uninstall Discord and make sure to remove any leftover files and programs. Follow these steps:
- Right-click on the Windows Start menu > select Search.
- Type "control panel" and click on it > click Uninstall a Program under the Programs icon.
- Find Discord and click on it > click Uninstall > once uninstalled, click Start > Run.
- Type in %appdata% > click Run.
- Find the Discord file > click delete.
- Open Run again > search for %localappdata% > delete the folder.
- Go to the Discord website > install the latest update of the app.
- Follow the on-screen installation steps provided by the installation wizard.
- Launch the Discord, and it should run without the Discord JavaScript error.