Skip to content
HELP 101010 DESK 010101 GEEK
  • How-To
  • Social Media
  • Streaming
  • Reviews
  • How-To
  • Social Media
  • Streaming
  • Reviews
  1. Home/
  2. Social Media/
  3. How to Fix a Discord Fatal Javascript Error

How to Fix a Discord Fatal Javascript Error

Ben Stockton
November 11, 2020
6 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Discord is a great platform for communities, whether it’s to play your favorite games, make friends, organize meetups, and to share ideas with like-minded individuals. You can use Discord in your web browser, but if you’re using the Discord desktop app, you may occasionally see a Discord fatal JavaScript error.

There are a number of reasons why this error can pop up, from corrupted Discord configuration files to overactive antivirus software blocking it from loading. To fix a Discord fatal JavaScript error on Windows 10, here’s what you’ll need to do.

Table of Contents

    What Causes a Discord Fatal JavaScript Error?

    When a Discord fatal JavaScript error appears, it isn’t immediately obvious what has caused it. However, in most cases, it’s caused by a corrupted Discord installation or another app or service (like your antivirus software) that prevents it from running correctly.

    For most users, repairing or reinstalling the Discord app will fix the problem, but if another third-party app or service is causing an issue, then you’ll need to dig deeper and make sure that Discord can load and run correctly.

    If that’s the case, you’ll need to troubleshoot Discord using the steps below. Don’t forget that if the Discord app on your PC or Mac isn’t working, you can still use the Discord website or Discord mobile app to access your servers instead.

    Remove and Regenerate the Discord AppData Folder

    If you’re using the Discord desktop app, then the app will store files on your PC to allow it to run correctly. This includes configuration settings, usage logs, cached thumbnails, and other data that it uses to quickly load when you reopen the app.

    If this data is corrupted, then Discord may stop working. To help regenerate your Discord configuration (and remove any temporary files), you can delete Discord’s AppData folder.

    1. To do this, open Windows File Explorer. Using the navigation bar at the top, type %appdata% and press the Enter key. This will take you to the AppData folder for your Windows user account.
    1. In the AppData folder, locate the Discord folder. Right-click the folder, then select the Delete option. You’ll need to make sure that Discord isn’t running (including checking for the discord.exe process in Windows Task Manager) before you do this.
    1. This will place the Discord AppData folder in your recycle bin. On your desktop, right-click the Recycle Bin icon and select the Empty Recycle Bin option to ensure the files are fully removed from your PC.

    Once the Discord AppData folder has been removed, Discord will automatically regenerate a new set of configuration files, forcing you to sign in with your Discord user account again. This should resolve the issue for many users but, if it doesn’t, you’ll 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 kind of Discord error), the next step is to fully remove and reinstall it. This should ensure that any corrupted files aren’t interfering with Discord as it attempts to run.

    1. To remove Discord, you’ll need to head to the Windows Settings menu. Right-click the Start menu and select Settings to do this.
    1. In the Windows Settings menu, select Apps > Apps & features. Scroll down until you find Discord listed or use the search bar to find it. Once you find Discord, select it in the list, then select the Uninstall > Uninstall buttons.
    1. Allow the Discord removal process to complete. Once it has, head to the Discord website and download the latest version of the desktop app for your platform.
    1. Once downloaded, run the Discord installer and follow any additional on-screen instructions (if required) to complete the installation.

    A new Discord installation will replace any existing files, but it may not remove any lingering temporary files, such as a corrupt AppData folder. If you’re still having trouble after reinstalling Discord, make sure that the AppData folder has been removed before trying the reinstallation process again.

    Run Discord as an Administrator

    If Discord fails to run, it could point to a problem with user privileges. While Discord should run on standard Windows user accounts, it won’t harm your PC to try to run Discord with administrator privileges enabled.

    1. To do this, open Windows File Explorer and use the navigation bar to open the C:UsersusernameAppDataLocalDiscord folder, replacing username with your user profile folder.
    1. In the Discord folder, you may see various numbered folders (for instance, app-0.0.3.308). These folder numbers refer to available versions of the Discord desktop app. Open the folder with the highest number (or the latest Date Modified date).
    1. In the folder you selected, right-click Discord.exe and select the Properties option.
    1. In the Compatibility tab of the Properties window, select the Run this program as an administrator option, then select the OK button to save.
    1. Once you’ve enabled Discord’s administrative privileges, double-click Discord.exe in Windows File Explorer to run it. You may need to accept the User Access Control pop-up to allow Discord to run by pressing the Yes option. You may also need to provide the username and password for a Windows administrator account if you’re currently using a standard user profile.

    If another app or service is preventing Discord from running properly, then running it with administrative privileges should help to fix the problem. The exception to this, however, is if you have an antivirus installed that might stop Discord from running in a sensitive user folder (such as your AppData folder).

    Check Your Antivirus Isn’t Blocking Discord

    Unlike typical applications, the Discord desktop app runs from within the AppData folder itself. Each version of Discord is treated as temporary, with an update file (update.exe) running first to ensure that the latest version of Discord is installed automatically.

    As a protected system folder, however, the AppData folder may have additional restrictions placed on it when a third-party antivirus is installed on your PC. While rare, antivirus protection can sometimes block a new installation of Discord from running correctly.

    Because the settings for third-party antivirus software can vary, you’ll need to double-check your antivirus settings directly to ensure this isn’t the case. If your antivirus software is blocking Discord, then be sure to add it to the “allowed” list to ensure that Discord can run without interference.

    Using Discord on Windows 10

    Once you’ve fixed a Discord fatal JavaScript error on your PC, you can begin to take advantage of its features. You can start by creating your own Discord server to build your own community, expanding it with Discord bots to add games, moderation features, and music capabilities.

    That is, of course, as long as you’ve connected to Discord successfully. If you’re still having trouble with your Discord server, you may prefer to use a Discord alternative like Teamspeak or Slack instead, depending on your use case.

    Tags: Windows 10 Windows 11
    Share
    Written by

    Ben Stockton

    Ben Stockton is a freelance technology writer based in the United Kingdom. In a past life, Ben was a college lecturer in the UK, training teens and adults. Since leaving the classroom, Ben has taken his teaching experience and applied it to writing tech how-to guides and tutorials, specialising in Linux, Windows, and Android. He has a degree in History and a postgraduate qualification in Computing. Read Ben's Full Bio

    View Ben's Profile

    Recent Posts

    • How to Fix App Notifications in Windows?Feb 27, 2026
    • Using an Old Device? 5 Account Security Settings You Should EnableFeb 26, 2026
    • How to Find Features Moved from Control Panel to Settings in Windows 11?Feb 26, 2026
    • How to Back Up Your Android Downloads Automatically?Feb 25, 2026

    Ready for the best newsletter in tech?

    Get daily tips, tricks, guides, and special offers delivered right to your inbox.

    Thanks! Check your inbox for the next issue.

    Search

    Categories

    • Announcements (1)
    • Gaming (51)
    • How-To (2,939)
    • News (12)
    • Reviews (294)
    • Social Media (96)
    • Streaming (37)

    Popular Tags

    Adobe Amazon Android Antivirus Buying Guides Chrome Chromebook Discord Explainer Facebook Firefox Gadget Reviews Google Google Docs Google Drive Hardware Home Networking Internet iPhone Linux macOS Microsoft Excel Microsoft Office Microsoft Outlook Microsoft PowerPoint Microsoft Surface Microsoft Teams Microsoft Word OneDrive Printers Roundups Software Reviews Steam Ubuntu Virtualization WhatsApp WiFi Windows 7 Windows 8 Windows 10 Windows 11 Windows Vista Windows XP Wordpress YouTube

    Our Publishing Family

    Help Desk Geek is part of the AK Internet Consulting publishing family.

    • ONLINE TECH TIPS
    • THE BACK ROOM TECH
    • SWITCHING TO MAC
    • XBOX ADVISOR

    Daily Email Newsletter

    CONNECT WITH US

    About Help Desk Geek

    Help Desk Geek has published practical troubleshooting guides, Windows and Office tutorials, and hardware fixes since 2009 — helping millions of readers solve tech problems and get more from their devices.

    Learn More →

    © 2009-2026 Help Desk Geek.com, LLC.
    All Rights Reserved.

    • Home
    • About Us
    • Editorial Standards
    • Contact Us
    • Terms of Use
    • Privacy Policy
    Online
    Tired of Googling Tech Problems?

    Tired of Googling Tech Problems?

    Get step-by-step fixes from Help Desk Geek so the answer is already in your inbox next time.

    By signing up, you agree to the Terms of Service and Privacy Policy.

    Subscribed! Next Tech Headache: Handled.

    Stay tuned for our step-by-step fixes, actionable guides, tech how-tos, and clear, practical advice for real-world problems.

    Thank you!

    Subscribed! Next Tech Headache: Handled.

    Stay tuned for our step-by-step fixes, actionable guides, tech how-tos, and clear, practical advice for real-world problems.