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.
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?
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.
- Click the search button in the taskbar. Type and open This PC.
- Go to the following location.
-
C:\Users\YOURUSERNAME\AppData\Discord
- Click on the “View” tab in the File Explorer menu.
- Locate and click on the “Hidden items” checkbox in the Show/Hide section.
- Delete the Discord folder in the AppData folder.
- Click the search button in the taskbar. Type and open %localappdata%.
- Locate and delete the Discord folder.
- 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.
- Click the search button in the taskbar. Type and open services.msc.
- Locate Quality Windows Audio Video Experience.
- Right-click on it and select properties.
- If the service is already running, click the stop button.
- Now click the start button.
- Now make sure you select Automatic in the Startup type dropdown menu.
- When you click OK, an error might appear stating “Windows could not start the service on the local computer.“
- If it happens, go back to the properties and click the Sign On tab.
- Click the browse button.
- Add the name of your account in the Enter the name of the object to select the box.
- Click OK.
- 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.
- Right-click on the Discord executable and click properties.
- Go to the compatibility tab.
- Uncheck the box parallel to Run this program as administrator.
- 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:
- Click the search button in the taskbar. Type and open Control Panel.
- Click on Uninstall a program.
- Now locate Discord. Right-click on it and select uninstall.
- Delete the Discord folder from Appdata and LocalData folders as indicated in the first solution.
- Download the latest version of Discord from your favorite browser.
- Double-click the downloaded file to install this tool. It will take some time to download some additional files.
- 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.
- Press “Windows’ + “R” to open the Run box and type in “taskmgr” and press “Enter”.
- In the Task Manager, click on the “Discord” option from the list of running processes and select the “End Task” button.
- Now that you have ended Discord, press “Windows’ + “R” and type in “Control Panel”.
- Click on the “Uninstall a Program” button, right-click on the “Discord” button and select “Uninstall”.
- Follow any on-screen prompts to uninstall the app from your computer.
- Now, navigate to the “AppData” and the “Local Data” folders and delete the Discord folder from there as indicated in the first step.
- After doing so, press the “Windows’ + “R” buttons to launch the Run box and type in “Cmd”.
- Press the “Shift+Ctrl+Enter” keys to grant admin privileges to the command prompt.
- Type in the following command and press “Enter” to execute it.
gpupdate /force
- Wait for the process to complete and close the command prompt.
- Reinstall Discord after downloading from their website and check to see if the error still persists.
If you need further assistance, contact here.