How to fix a fatal Javascript Discord error.
Discord is a great platform for communities, whether it’s playing your favorite games, dating, organizing meetings, and exchanging ideas with like-minded people. You can use Discord in your web browser, but if you are using the Discord desktop app you may sometimes see the Discord JavaScript fatal error.
This error can appear for a number of reasons, from corrupted Discord configuration files to overly active antivirus software blocking it from loading. Here’s what you need to do to fix the Windows 10 JavaScript Discord fatal error.
What Causes a Discord Fatal JavaScript Error?
When a fatal JavaScript error appears on Discord, it’s not immediately clear what caused it. However, in most cases, this is caused by a corrupted Discord installation or another application or service (like your antivirus software) that is preventing it from working properly.
For most users, restoring or reinstalling the Discord app will fix the problem, but if another third-party app or service is causing the problem, you’ll need to dig deeper and make sure Discord can load and work correctly.
In this case, you will need to troubleshoot Discord by following these steps. Don’t forget, if the Discord app isn’t working on your PC or Mac, you can still use the Discord website or the Discord mobile app to access your servers.
Remove and Regenerate the Discord AppData Folder
If you are using the Discord desktop app, it will store files on your computer to ensure it works properly. This includes configuration settings, usage logs, cached thumbnails, and other data that are used to load quickly when the app is reopened.
If this data gets corrupted, Discord may stop working. To restore your Discord configuration (and remove all temporary files), you can delete the AppData Discord folder.
- To do this, open Windows Explorer. Using the navigation bar at the top, type% appdata% and press the Enter key. You will be taken to the AppData folder of your Windows account.
- In the AppData folder, find the Discord folder. Right-click the folder and select the Delete option. Before doing this, you need to make sure Discord is not running (including checking for the discord.exe process in the Windows Task Manager).
- This will put the Discord AppData folder in your trash. On your desktop, right-click on the trash can icon and select the “Empty Trash” option to completely remove the files from your computer.
After deleting the Discord folder, AppData Discord will automatically regenerate a new set of config files, forcing you to log back into your Discord account. This should fix the problem for many users, but if it doesn’t, you will need to try one of the additional steps below.
Remove and Reinstall the Discord Desktop App
When Discord has an issue with a fatal JavaScript error (or indeed any other Discord error), the next step is to completely uninstall and reinstall it. This is to ensure that any corrupted files don’t interfere with Discord when trying to launch it.
- To uninstall Discord, you need to go to the Windows settings menu. Right-click the Start menu and select Options.
- From the Windows Settings menu, select Applications> Applications & Features. Scroll down until you find Discord listed, or use the search bar to find it. Once you find Discord, select it from the list, then click the Remove> Remove buttons.
- Please wait while the Discord removal process is complete. After that, head over to the Discord website and download the latest desktop app for your platform.
- Once downloaded, launch the Discord installer and follow any additional onscreen instructions (if necessary) to complete the installation.
A fresh installation of Discord will replace all existing files, but cannot remove any temporary files, such as the corrupted AppData folder. If you’re still having problems after reinstalling Discord, make sure the AppData folder has been deleted before attempting to repeat the reinstallation process.
Run Discord as an Administrator
If Discord won’t start, it could indicate a user rights issue. Although Discord should work with standard Windows user accounts, trying to run Discord with administrator rights enabled won’t harm your computer.
- To do this, open Windows Explorer and use the navigation pane to open the C: Users username AppData Local Discord folder, replacing the username with your user profile folder.
- In the Discord folder, you can see folders with different numbers (for example, app-0.0.3.308). These folder numbers refer to the available versions of the Discord desktop app. Open the folder with the highest number (or last date modified date).
- In the selected folder, right-click Discord.exe and select the Properties option.
- On the Compatibility tab of the Properties window, select the Run this program as administrator option, then click OK to save.
- After enabling Discord admin rights, double-click Discord.exe in Windows Explorer to start it. You may need to accept the access control popup to allow Discord to launch by clicking Yes. You may also need to provide a username and password for the Windows Administrator account if you are currently using a standard user profile.
If another app or service is preventing Discord from working properly, running it as an administrator should fix the problem. The exception, however, is that you have an antivirus installed that can stop Discord from starting in the user’s confidential folder (for example, the AppData folder).
Check Your Antivirus Isn’t Blocking Discord
Unlike typical apps, the Discord desktop app runs from the AppData folder itself. Each version of Discord is considered temporary, with the update file (update.exe) running first to ensure that the latest version of Discord is automatically installed.
However, as a protected system folder, the AppData folder may have additional restrictions if a third-party antivirus is installed on your computer. On rare occasions, antivirus protection can sometimes block a fresh Discord installation from working properly.
Since the settings of third-party antivirus software may vary, you need to double-check your antivirus settings directly to make sure it is not. If your antivirus software is blocking Discord, be sure to add it to the “allowed” list so that Discord can run smoothly.
Using Discord on Windows 10
Once you fix Discord’s fatal JavaScript error on your computer, you can start enjoying its features. You can start by creating your own Discord server to build your own community, expanding with Discord bots to add games, moderation features, and music capabilities.
This is, of course, assuming you’ve successfully connected to Discord. If you’re still having issues with your Discord server, you might prefer a Discord alternative like Teamspeak or Slack, depending on your use case.
–
How to fix a fatal Javascript Discord error
How to fix a fatal Javascript Discord error