Discord JavaScript Error on Start-up | Fatal Error FIXED
discord javascript error on startup

Discord JavaScript Error on Start-up | Fatal Error FIXED

Spread the love

Many users are facing discord JavaScript error on startup and even while streaming with an error message of “A JavaScript error occurred in the main process” with discord uncaught exception.

Most of the users complained that they even restarted and reinstalled discord but still having the same issues. In this article, I am covering all possible methods that will fix this JavaScript error.

So, whenever you pull up discord you get a fatal error of JavaScript and that is mostly on windows 10.

discord a fatal javascript error occurred
discord a fatal javascript error occurred

 

What does JavaScript Error mean?______________________________

JavaScript error mostly occurs while browsing on the Internet or while installing or opening any windows applications.

There are two types of JavaScript error, Syntax and Runtime Error.

Discord JavaScript error is a runtime error that occurs when the script is unable to complete the instructions and which means there is something that is stopping the JavaScript to proceed.

Causes behind Discord JavaScript Error on Startup

Let me share a few possible causes behind this error that will also help to fix the problem.

Running Discord as an Administrator:- Sometimes running apps with administrative privileges gives an error like JavaScript. Most of the time our programs run as an administrator and probably this can be the cause.

Discord files are corrupted or damaged:- Chances are that discord files got corrupted due to which application fails to start and gives an error. These corrupted files can also cause problems in starting the application and discord stuck on the starting screen.

Problem with Windows Quality audio video Service:- If the quality windows audio video experience service is not running or running in the manual mode, it can be another cause behind JavaScript error discord on windows 10.

Issues with Windows:- This error can also be because of windows corrupted files or infections. 

 

How to Fix Discord JavaScript Error on Startup

I am very sure these 7 steps of the solution will surely fix this error of discord while start-up or installing discord.

Please do not skip any of the steps, and follow the below steps properly.

 

SOLUTION 1:- Completely Close Discord

Many backgrounds running files create problems while starting discord and can also become a cause of discord JavaScript error on startup.

In this step, you need to completely close all the background running apps and files of discord. Follow the below steps.

Press Ctrl + Shift + Esc key to bring task manager or make a right-click on the taskbar and choose task manager.

Now in the task manager click on the Details tab and close all the discord-related files by making a right-click on the app and then click on end task.

End all tasks from task manager
End all tasks from task manager

 

Make sure that you have closed all the discord files, you can also check in the process tab. Once done let’s move to step no 2.

 

SOLUTION 2:- Run Discord without Admin Rights to Fix Discord JavaScript Error on Startup

There are few applications that work absolutely fine when run without admin rights, as many users got their issues of JavaScript error fixed by running discord without admin rights.

In this process, you need to revoke the admin rights of the discord app, which can be done by the following steps.

Right-click on the discord app and then choose properties.

From the discord properties, click on the Compatibility tab. In the compatibility box at the bottom in the setting section, you will find “Run this program as an administrator”, uncheck the box and then click on Apply and Ok.

How to Fix Discord JavaScript Error
How to Fix Discord JavaScript Error

 

You may need to repeat this step at the end of troubleshooting.

 

SOLUTION 3:- Change Start-up Settings of Quality Windows Audio Video Experience

Quality windows audio-video experience settings in windows 10 contain start-up settings which can also create conflicts and errors on discord or any other programs.

This is another tested solution which worked for many discord users to fix JavaScript error on startup.

Here in this solution, we will change the quality windows audio video experience startup from manual to automatic.

Press Windows + R key to open the RUN box, type services.msc and click on Ok to open windows services.

How to open services in windows 10
How to open services in windows 10

 

Once the windows services box is up, scroll down to the bottom to find Quality Windows Audio Video Experience. Make a right-click on it and choose properties.

Discord javascript error occurred in the main process
A discord javascript error occurred in the main process

 

In the properties, sections look for the running status and click on Stop to stop the service. Now click on start-up type and from the drop-down choose automatic.

Discord javascript error windows 10
Discord javascript error windows 10

 

Now click on Start again to start the services and click on Apply and ok. Restart the computer to see the changes. I would recommend that you apply all the solutions.

 

SOLUTION 4:- Run Windows Hard disk Scan

Technically, any corrupted or damaged system files can also cause JavaScript error while opening any apps on windows 10.

Here we will use the system file checker tool to repair the system files, follow the below steps.

Type Windows power shell in the windows search and click on run as administrator to launch power shell.

How to open windows power shell
How to open windows power shell

 

Now type the below commands one by one and wait for sometime after each command to get completed.

    • DISM.exe /Online /Cleanup-image /Scanhealth
    • DISM.exe /Online /Cleanup-image /Restorehealth
    • DISM.exe /online /cleanup-image /startcomponentcleanup
    • sfc /scannow
Discord javascript error windows 10
Discord javascript error windows 10

 

Once the commands are completed, restart the computer and try opening discord, if still doesn’t work move to the next solution.

 

SOLUTION 5:- Disable Anti-Virus & Firewall to Fix Discord JavaScript Error on Startup

Antivirus and Firewall programs are to block unwanted programs and connections, but sometimes unintentionally it blocks a few of the system or app files.

In order to verify this, we will temporarily disable the Antivirus programs. You might be using third party security programs like Norton and Avast but here I am explaining for windows defender security.  

Type Windows security in the windows search and open the app. In the windows security, click on Virus & Threat protection.

Disable Virus and threat protection in windows
Disable Virus and threat protection in windows

 

In the next windows, scroll down to Virus and Threat protection settings and click on Manage settings.

better discord javascript error
dsiable real time protection

 

Look for Real-time protection and disable it by clicking on the blue switch.

 

SOLUTION 6:- Uninstall Discord and Discord Data Files

So far you are done with many troubleshooting parts and now reinstalling discord after uninstalling discord and its data may work absolutely fine.

 Press Windows + R key to open the RUN box, type appwiz.cpl and click to open the program and features.

Uninstall discord
Uninstall discord

 

A list of all the programs will be displayed, look for discord, right-click on it, and choose to uninstall.

Once done close the box and press the Windows + R key again to open the run box, type %appdata%, and click on ok. Look for the discord folder, right-click on it and choose delete.

discord javascript error on startup
discord javascript error on startup

 

Open the RUN box again, type %localappdata%, and click on ok. Look for the discord folder and delete it by making a right-click on it, choose delete.

Now restart the computer and visit the discord official website to download the discord again.

 

SOLUTION 7:- Restore the Device to Fix Discord JavaScript Error on Startup

I am very sure if you have applied all the above solutions you just got rid of the discord JavaScript error on start-up till now.

If by any chance nothing worked for you I would recommend without going further to any more technical troubleshooting steps kindly restore your device to an earlier time when your device was working fine.

Press Windows + R key to open RUN box and type rstrui.exe to open restore wizard. System restore box will now be up, click on Next.

restore windows 10
restore windows 10

 

Now you will see all the restore points created on your device, you can also check the box to show more restore points to see all the restore points.

Choose one of the dates when you think your discord was working fine and click on Next to proceed. Click on Finish and wait till the restore is completed.

 


FINAL WORDS

As far as I know, the above solutions to fix discord JavaScript error on startup worked for many discord users and will work for you as well.

You may have issues of JavaScript error with better discord as well, where I would recommend you to perform the same solutions and also update your discord and download an updated version of better discord.

Please perform all the solutions one by one and repeat solution no 2 in the end again. Let me know in the comment box which solution worked for you in the comment box.

Do let me know if still you are facing this problem and try opening other apps on your device, if you face the same issue with other apps and programs it means the problem is with your device.


Spread the love

Leave a Reply