Discord Fatal JavaScript Error (Resolved)

Discord Crashes and Prompts Fatal JavaScript Error

Discord is quite a useful VoIP Client for gaming as it allows you to use the voice-chat functionality for free without much hassle. This program is quite popular among the gaming community as it allows unlimited access to its functionality but the program sometimes shows its imperfections.

There are some errors related to the “Discord showing fatal javascript error” which appear when users want to install or run Discord and there is not much information regarding this error on their official website. However, there are some methods suggested by users who have experienced this error and who were able to fix it. Follow the methods below carefully and check whether one of them will help you in your scenario. Here is the photo of some error you might face:-

Javascript Fatal Error

There are more errors with Javascript in Discord Such as ‘A JavaScript Error Occurred in the Main Process’ but we have already covered an article on that topic so today we are going to show you how to resolve ‘A fatal Javascript error occurred issue on Discord. There can be several reasons for this issue to occur in the first place. Here are some of the reasons you might be facing this issue:-

  • BetterDiscord – Sometimes people tend to Install programs such as “BetterDiscord” over Discord to increase the overall features and functionality of the Discord, however, these scripts aren’t really properly supported by Discord itself. Uninstall the script that your think is causing the issue will likely resolve the Fatal Javascript error on Discord.
  • Corrupted Modules – The error you are getting might show information such as “Failed to load Module” or “Cannot found the Module”, this represents the missing module of Discord that might be deleted or corrupted by third-party cleaning tools or optimization tools. This can cause issues and discord might not work correctly thus showing the “Fatal Javascript error occurred” error. Re-installing the Discord properly should resolve a fatal javascript error on the discord.
  • Antivirus Conflict – It’s also possible that your anti-virus isn’t letting discord read the module’s data properly causing it to fail to load some scripts, this can cause some issues when opening Discord. It might doesn’t load properly.

In this article, we will try our best to make sure that your problem gets resolved regardless of the reason. You can start following the methods below.

1. Uninstall the BetterDiscord (if applicable)

As this issue arises when you are trying to run some custom scripts using BetterDiscord, the first thing we are going to recommend you, is to uninstall the BetterDiscord as it might be the root cause of this issue. Also, Discord official support will not provide you any assistance whatsoever because using the BetterDiscord is a violation of their Term of Services. To uninstall BetterDiscord, follow these steps:-

  1. First of all, you will have to Download the Setup of BetterDiscord from their Official Website.
  2. Once it’s downloaded, open it, accept the License Agreement and then click “Uninstall BetterDiscord”.

    Uninstalling BetterDiscord
  3. Now Select your Discord installation and simply click “Uninstall”.
  4. Wait for the Setup to Uninstall your BetterDiscord and then check to see if the fatal javascript error occurred in discord again.

2. Re-install the Discord Properly

It’s possible that your Discord’s modules aren’t being loaded/read properly. In that case, a fresh install should resolve this issue of Fatal Javascript error. To re-install Discord Properly, follow the steps below:-

  1. We are going to start off by uninstalling the Discord from Windows Uninstaller.
  2. Press and hold the Windows key and press the R key to open Run.
  3. In the Run program, Type “appwiz.cpl” and press enter.
    Opening Windows Uninstaller
  4. Now find and uninstall Discord from the List of these Programs.
    Uninstalling Discord
  5. After Uninstalling the Discord Restart your computer.
  6. Now you will have to uninstall two folders on your computer to completely remove Discord.
  7. Press and hold the Windows key then press the R key to open Run again. Now type and press enter:-
    %localappdata%
  8. Delete the folder named “Discord”, if you can’t find it you can skip this step.
  9. Now open run again and type:-
    %appdata%
  10. Find and Delete the Discord folder from this folder as well. If you can find it skip this step.
  11. Now, we will boot our computer into safe mode with Networking. Follow these steps:-
  12. Click on the Start Menu icon and hold the right shift button on your Keyboard then click the “Restart” button.
    Restarting in Windows Safe Mode
  13. Now, wait for the Windows recovery window to show up. Once it shows up press “Troubleshoot”.
    Entering Troubleshooting Section
  14. Now click “Advanced Options”.

    Using Advanced Options
  15. Now click on “Startup Settings”.

    Startup Setting
  16. Now Once you are in Startup Settings click “Restart”.

    Restarting with Startup Settings
  17. Now once your Computer restarts you should see a blue screen with multiple options.
  18. Select “Safe mode with networking” by using the “F5” key.
  19. Once you are in the safe mode simply open your Browser and Download the latest version of Discord.
  20. Install the Discord Client and check to see if the issue persists.
  21. Once the Discord Client is Installed you can restart your computer to normal mode.

3. Whitelist Discord Files in Your Antivirus

If you are getting this issue while Installing Discord. Some users experienced a situation where their antivirus (Avast in most cases) accidentally quarantined some of the installer files needed for the update or for the installation to finish, thinking it was a potentially dangerous file.

You will have to locate the file and whitelist it in order for the installation process to continue. Follow the instructions below in order to do this with your Avast antivirus.

  1. If Avast is already open, you can locate it at your taskbar, right-click on it and select open. If Avast does not load on startup, you can always start it manually by locating it in Start.
  2. Proceed by selecting Scan >> Scan for Viruses >> Quarantine (Virus Chest). The quarantine button is located somewhere at the bottom of the page.

  1. When you open the quarantine you should notice some Discord-related files. Restore these files and click “Add to Exclusions”. If some of these files have already been generated by the installer, click Overwrite to replace these files and launch the installation again.

In order to prevent this confusion from happening again with a different file, you will need to set up the installer and the tool itself as an exception in the Avast antivirus, depending on whether the error occurred during the installing phase or after it has already been installed.

  1. Open your Avast antivirus in any of the ways we mentioned earlier. After that, navigate to Settings >> Exclusions. This is where users are free to put files that should not be looked after and which should not be scanned or registered as a threat.

  1. Add the installation folder of Discord in order to exclude it from scanning. If the error occurs when installing the tool, navigate to the location where the installer is located and choose it.
  2. After that, close your Avast window and try running or installing Discord again and check to see if the error is gone.

Note: If this whole process doesn’t work, you might need to completely uninstall your antivirus and run the installer again without the antivirus installed. After the installation completes successfully, reinstall your antivirus and this should fix the fatal javascript error occurred in discord.

Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Expert Tip

Discord Fatal JavaScript Error (Resolved)

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested