Fixes

Discord: A Fatal Javascript Error Occured [Fixed Completely]

Discord is a voice and video chat tool that is very famous among the gaming community. It offers many features free of cost but it has some bugs in it which need to be fixed. An error has been reported by so many users that when they trying to install or launch Discord, a Javascript related error occurs which states “A Fatal Javascript error occurred” and sometimes, it states “Operation not permitted” as well. This error can be resolved by going through some solutions that are stated in this article.

On starting the app the "discord fatal javascript error" display
Error Message

What Causes Fatal Javascript error?

This error has been frequently reported by so many users and different reasons are considered to be causing this issue. Some of the most common are listed below:

  • Your anti-virus software might be blocking some of the features of Discord.
  • Configuration of discord might be damaged.
  • This error might occur if the Quality Windows Audio Video Experience service is not running.

What can I do if I get the “a fatal javascript error occurred” error on Discord?

Fix Issue Automatically
If you want to have this issue fixed automatically on your computer and diagnose, list, and rectify any registry errors, we recommend that you try using the Restoro Repair Tool that can easily do all of this at a single click. It has been rated Great by Trustpilot so you don’t have to worry about anything.

Pre Tips:

Whenever you come across this error, before going to any major solution, make sure that your antivirus software is not blocking any of the features of Discord. Where third-party antivirus software prevents your system from several threats, they might also cause some problems with running different tools. To ensure that the antivirus is not causing this error of discord, add discord to the antivirus exception or completely uninstall your anti-virus and check f the issue is resolved.

Solution 1: Delete Discord Folders from the Disk

If this error is still occurring after whitelisting discord in your antivirus software, try to delete the discord folders from the disk that it uses to store temporary data to make sure it works fine or in some cases, cause errors.

  1. Click the search button in the taskbar. Type and open This PC.
    Type This PC in Search bar
    This PC
  2. Go to the following location.
  3. C:\Users\YOURUSERNAME\AppData\Discord
  4.  Click on the “View” tab in the File Explorer menu.
  5. Locate and click on the “Hidden items” checkbox in the Show/Hide section.
    View hidden items
  6. Delete the Discord folder in the AppData folder.
  7. Click the search button in the taskbar. Type and open %localappdata%.
    Open localappdata folder to resolve "discord fatal javascript error"
    Localappdata
  8. Locate and delete the Discord folder.
  9. Restart your PC.

Solution 2: Edit Startup Type of the Quality Windows Audio Video Experience Service

If you still can’t get rid of this error, edit the Startup Type of the Quality Windows Audio Video Experience Service. Follow the steps below to carry this task out.

  1. Click the search button in the taskbar. Type and open services.msc.
  2.  Locate Quality Windows Audio Video Experience.
    Look for Windows Audio Video Experience in Services
    Quality Windows Audio Video Experience
  3. Right-click on it and select properties.
  4. If the service is already running, click the stop button.
  5. Now click the start button.
    Start the Quality Windows Audio video experience service to sort out "discord fatal javascript error"
    Start service
  6. Now make sure you select Automatic in the Startup type dropdown menu.
    In startup type Select Automatic
    Automatic
  7. When you click OK, an error might appear stating Windows could not start the service on the local computer.
  8. If it happens, go back to the properties and click the Sign On tab.
  9. Click the browse button.
    Under the Log On option click the Browse button
    Browse
  10. Add the name of your account in the Enter the name of the object to select the box.
    Select user to fix "discord fatal javascript error"
    Name the object
  11. Click OK.
  12. Restart your computer.

Solution 3: Take away the Administrator Privileges

Sometimes this error occurs when you have given the administrator privileges to discord. Taking them away has been proven an efficient solution in many cases.

  1. Right-click on the Discord executable and click properties.
  2. Go to the compatibility tab.
  3. Uncheck the box parallel to Run this program as administrator.
    Uncheck the box Run this program as an administrator to fix "discord fatal javascript error"
    Discord Properties
  4. Click Ok and restart your PC.

Solution 4: Reinstall Discord

The final solution to this problem is uninstalling and reinstalling this application on your computer. To dot this, follow the steps below:

  1. Click the search button in the taskbar. Type and open Control Panel.
  2. Click on Uninstall a program.
    In control panel click on Uninstall a program
    Uninstall
  3. Now locate Discord. Right-click on it and select uninstall.
    In Programs and features select discord and click on uninstall
    Uninstall Discord
  4. Delete the Discord folder from Appdata and LocalData folders as indicated in the first solution.
  5. Download the latest version of Discord from your favorite browser.
  6. Double-click the downloaded file to install this tool. It will take some time to download some additional files.
    Reinstall Discord to sort out "discord fatal javascript error"
    Installing discord
  7. Check if this problem is resolved or not.

Solution 5: Using Command Prompt

If nothing else is working for you, we have a fix that involves making some changes with the command prompt of your computer. For this, you will first have to remove Discord from your PC.

  1. Press “Windows’ + “R” to open the Run box and type in “taskmgr” and press “Enter”.
    Typing in "taskmgr"
    Typing in “taskmgr”
  2. In the Task Manager, click on the “Discord” option from the list of running processes and select the “End Task” button.
  3. Now that you have ended Discord, press “Windows’ + “R” and type in “Control Panel”.
    Typing in Control Panel
    Typing in Control Panel
  4. Click on the “Uninstall a Program” button, right-click on the “Discord” button and select “Uninstall”.
  5. Follow any on-screen prompts to uninstall the app from your computer.
  6. Now, navigate to the “AppData” and the “Local Data” folders and delete the Discord folder from there as indicated in the first step.
  7. After doing so, press the “Windows’ + “R” buttons to launch the Run box and type in “Cmd”.
    Typing in cmd
    Typing in cmd
  8. Press the “Shift+Ctrl+Enter” keys to grant admin privileges to the command prompt.
  9. Type in the following command and press “Enter” to execute it.
    gpupdate /force
  10. Wait for the process to complete and close the command prompt.
  11. Reinstall Discord after downloading from their website and check to see if the error still persists.

If you need further assistance, contact here.

Back to top button
Close
Close