Error Code Explained
The “Discord JavaScript Error” often appears when a user wants to install or run Discord. There is no specific information available on the official website regarding the cause of this error.
Listed below are few fixes which some users found to be working.
Solution 1: Add Discord to Exclusion List of Antivirus
Few users reported that their antivirus program, mostly Avast, quarantined some files of discord. Since these files were no longer accessible by discord, the users came across the “Discord JavaScript Error”.
In this situation, the user will have to add “Discord” to a trusted list or something similar depending on the Antivirus program they are using. In case, the files are already quarantined, the user will have to open the quarantine list, search for discord’s files and restore them.
In case of Avast, the user must locate the files and whitelist them in order to continue with the installation. Follow the steps below to do so:
- Open Avast then select Scan >> Scan for Virus >> Quarantine (Virus Chest).
- Look for Discord’s files, select them and click restore.
Avast antivirus has an Exclusion list feature. Any applications added here won’t be scanned during Virus scan procedures. If this is not done, then Avast will quarantine the files again and again. Follow the steps below to add applications and files to the exclusion list.
- Open Avast antivirus and navigate to Settings >> Exclusions.
- Here, click on “browse” and select the file you want to include in the Exclusion list.
- Click on “Add” to finish the procedure.
P.S: In case the user is not able to add files to exclusion, then they will have to uninstall the antivirus and install it after installing Discord.
Solution 2: For Windows Server Users
- Right click on This PC/Computer and click on “Manage”.
- Navigate to Server Manager >> Features and click on the “Add Features” option found on the right side of the window.
- Once the “Add Features Wizard” window opens, search for “Quality Windows Audio Video Experience” entry and check the box beside it.
- Click “Next” and continue with the installation. Restart your system once the process is complete.
Solution 3: Reinstall Discord
This is the only solution which worked for most of the users to solve the Discord JavaScript Error.
- Open Control Panel and click on “Uninstall a Program”
- Locate “Discord” and click on uninstall.
- Open run window (ctrl+r) and type “%appdata%” and press enter.
- Locate “Discord” folder and delete.
- Open run window again and type “%localappdata%” and press enter.
- Locate “Discord” folder and delete.
Following the above steps shall help the user to uninstall “Discord” along with all of its temporary files.
Now install Discord and check if the error still pops up.