Windows 10 ошибка javascript


Download Article


Download Article

If you’re seeing an error that says «a JavaScript error occurred in the main process» or «a fatal JavaScript error occurred» when trying to open or install Discord, there are several potential fixes. While these fixes are designed to resolve this error on Discord, they should work to resolve similar errors in other apps, including Microsoft Teams. We’ll show you how to troubleshoot JavaScript errors for Discord, Microsoft Teams, and other Windows 10 apps.

  1. Image titled Fix a Javascript Error in Windows 10 Step 1

    1

    Open your antivirus or antimalware software. If you’re unable to install Discord or another app on your PC because of a JavaScript error, such as «a JavaScript error occurred in the main process,» your antivirus software may be blocking the installer. You can fix this by adding an exclusion for the installer.

    • If you’re using Windows Security, which comes for free with Windows, type security into the search bar and then click Windows Security.
    • The remaining steps will cover unblocking an installer with Windows Security, but your antivirus suite may have different menu options.
  2. Image titled Fix a Javascript Error in Windows 10 Step 2

    2

    Go to the Virus and threat protection area. This gives you a general overview of your antivirus settings.

    Advertisement

  3. Image titled Fix a Javascript Error in Windows 10 Step 3

    3

    Click Manage settings. This opens the settings for your antivirus protection.

  4. Image titled Fix a Javascript Error in Windows 10 Step 4

    4

    Add an exclusion for the Discord installer. If you’re using Windows Security, click Add an exclusion, select File, and then open your download folder and select DiscordSetup.exe (or the name of the installer you’re trying to run).

  5. Image titled Fix a Javascript Error in Windows 10 Step 5

    5

    Run the installer again. Once you’ve allowed the installer to run, you should resolve JavaScript errors that occur during installation.

  6. Advertisement

  1. Image titled Fix a Javascript Error in Windows 10 Step 6

    1

    Close Discord (or the app you’re trying to fix). If you get a JavaScript error when trying to launch or install Discord or another app, the application data may be corrupt. If the app is running right now, you’ll want to close it so you can properly delete and reinstall it. Make sure it’s not minimized to your taskbar.

    • To be sure it’s closed, press Control + Alt + Delete and click Task Manager. If you see a that the app is running, click to select it, and then click End Task.[1]
    • Even if you’ve only tried installing the app and were not successful, you should still use this method before you try to install again.
  2. Image titled Fix a Javascript Error in Windows 10 Step 7

    2

    Press Win+S. This activates the Windows search bar.

  3. Image titled Fix a Javascript Error in Windows 10 Step 8

    3

    Type %appdata% and press Enter. This opens a File Explorer window to your application data.

  4. Image titled Fix a Javascript Error in Windows 10 Step 9

    4

    Permanently delete the folder for the app you’re trying to fix. For example, if you’re trying to fix Discord, you’ll want to delete the «Discord» folder. Here’s how:

    • Click the folder once to select it. Don’t open the folder—just select it for now.
    • Hold down the Shift key as you press Delete.
    • Click Yes.
  5. Image titled Fix a Javascript Error in Windows 10 Step 10

    5

    Press Win+S. This activates the Windows search bar again.

  6. Image titled Fix a Javascript Error in Windows 10 Step 11

    6

    Type %LocalAppData% and press Enter. This opens a File Explorer window to your local app data.

  7. Image titled Fix a Javascript Error in Windows 10 Step 12

    7

    Permanently delete the app’s folder here as well. Just hold down the Shift key as you press Delete, and then confirm deletion.

    • If you don’t see this folder, just skip this step.
  8. Image titled Fix a Javascript Error in Windows 10 Step 13

    8

    Uninstall Discord (or the app in question) from your PC. Here’s how:

    • Open the Windows menu and click the Settings gear.
    • Go to Apps > Apps & features.
    • Select the app and click Uninstall. If you don’t see the app here, just move to the next step.
    • Click Uninstall to confirm.
  9. Image titled Fix a Javascript Error in Windows 10 Step 14

    9

    Reinstall the app. If you’re reinstalling Discord, you can download the installer from https://discord.com/download. Once downloaded, double-click the installer and follow the on-screen instructions—this should fix just about all installation errors.

  10. Advertisement

  1. Image titled Fix a Javascript Error in Windows 10 Step 15

    1

    Open your Windows Settings

    Windows Settings

    . If you’re getting an error that says «a JavaScript error occurred in the main process» when trying to install Microsoft Teams, this may indicate a problem with the C++ libraries installed on your PC.[2]

    • While this method is known to work for Teams, it may also resolve the same issue in other apps.
  2. Image titled Fix a Javascript Error in Windows 10 Step 16

    2

    Click Apps. This opens the Settings panel to the Apps list.

  3. Image titled Fix a Javascript Error in Windows 10 Step 17

    3

    Click Apps & Features. This option is in the left panel.[3]

  4. Image titled Fix a Javascript Error in Windows 10 Step 18

    4

    Click the latest version of Microsoft Visual C++. You’ll probably see several instances of Visual ++ here—you’ll want to click the one that has the most recent date.

  5. Image titled Fix a Javascript Error in Windows 10 Step 19

    5

    Click Change or Advanced options. You should see one of these two options here.

  6. Image titled Fix a Javascript Error in Windows 10 Step 20

    6

    Click Repair. This performs a few repair steps to the C++ libraries.

    • If prompted, enter your administrator password to confirm.
  7. Image titled Fix a Javascript Error in Windows 10 Step 21

    7

    Try running the installer again. This should resolve most JavaScript installation errors with Microsoft Teams on Windows 10.

  8. Advertisement

  1. Image titled Fix a Javascript Error in Windows 10 Step 22

    1

    Close Discord (or the app you’re trying to fix). If you get a JavaScript error when trying to start Discord or another app, certain processes may be failing because they need more permissions. If the app is running right now, you’ll want to close it. Make sure it’s not minimized to your taskbar.

    • To be sure it’s closed, press Control + Alt + Delete and click Task Manager. If you see a process for the app running, click to select it, and then click End Task.
  2. Image titled Fix a Javascript Error in Windows 10 Step 23

    2

    Right-click the Discord icon on your desktop or in the Windows menu. A menu will expand.

  3. Image titled Fix a Javascript Error in Windows 10 Step 24

    3

    Click Open file location. If you don’t see this option, you may have to click More first. This takes you to the app’s install location.

  4. Image titled Fix a Javascript Error in Windows 10 Step 25

    4

    Double-click the latest version of Discord. If you’ve run a few Discord updates, you may have several folders beginning with app- and ending with a number. Double-click the one with the most recent version number.

    • If you’re trying to fix a different app, you’ll usually see that app right here in the folder you’ve opened. If not, look around for a file with the app’s name—it may end with «.exe.»
  5. Image titled Fix a Javascript Error in Windows 10 Step 26

    5

    Right-click the app and select Properties. Properties for the selected app will appear.

  6. Image titled Fix a Javascript Error in Windows 10 Step 27

    6

    Click the Compatibility tab. It’s at the top of the window.

  7. Image titled Fix a Javascript Error in Windows 10 Step 28

    7

    Check the box next to «Run this program as an administrator.» This gives the app permission to everything on your PC, which may clear up issues caused by access rights.

  8. Image titled Fix a Javascript Error in Windows 10 Step 29

    8

    Click OK. This saves your changes.

  9. Image titled Fix a Javascript Error in Windows 10 Step 30

    9

    Start Discord or your preferred app normally. Now that you’ve set the app to run as an administrator, starting it by double-clicking its icon on your desktop or in the Windows menu will run it with elevated privileges.

  10. Advertisement

Add New Question

  • Question

    Why am I getting a Javascript error with WordPress?

    Luigi Oppido

    Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.

    Luigi Oppido

    Computer & Tech Specialist

    Expert Answer

    Check the website on other devices, like another computer or a tablet. If the same error shows up, there’s an issue with the code that needs to be looked at. It also helps to make sure that Java is up-to-date on your computer, since a lot of people don’t even update Java anymore (since it’s updated with the operating system).

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

About This Article

Article SummaryX

1. Unblock the installer in your antivirus software.
2. Try deleting the app’s folders in AppData and LocalAppData and then reinstalling.
3. Repair the latest version of Microsoft Visual C++ in Apps & Features.
4. Run the app as an administrator.

Did this summary help you?

Thanks to all authors for creating a page that has been read 37,230 times.

Is this article up to date?

09.03.2020

Просмотров: 70431

На компьютере с Windows 7, 8 и 10 при запуске программы Skype, Faceit и Discord может появиться ошибка JavaScript error occurred in the main process, которая свидетельствует о повреждении системных файлов, отключении нужной службы или о необходимости применения прав Администратора. Решение данной ошибки достаточно простое. Однако для каждой программы будут отличаться некоторые рекомендации.

Читайте также: Как исправить ошибку 0xc0000906 на Windows 7 при запуске игр и приложений?

Методы решения ошибки JavaScript error occurred in the main process

Если при запуске программы Skype, Faceit и Discord на вашем ПК возникла ошибка JavaScript error occurred in the main process, то в первую очередь нужно снять задачу в Диспетчере задач. Для этого нужно нажать на Панели задач провой кнопкой мыши и выбрать «Запустить Диспетчер задач».

Далее переходим во вкладку «Процессы» и завершаем процессы, которые связаны с программой, при запуске которой вылетает ошибка.

После того, как задачи к приложениям были сняты, нужно очистить папки программ с кэшем. Для этого нужно нажать «Win+R», чтобы вызвать окно «Выполнить» и ввести %appdata%.

Находим папку программы, при запуске которой возникает ошибка JavaScript error occurred in the main process и удаляем её.

 

Теперь в окне «Выполнить» необходимо ввести %localappdata% и также найти и удалить директорию, принадлежащую сбойной программе. После этого перезагружаем систему. Программа сама создаст нужные папки.

В случае, если после удаления данных папок ошибка не исчезла, рекомендуем полностью удалить программу и установить её заново, только с применением прав Администратора. Для этого нужно нажать на ярлыке софта правой кнопкой мыши и вызвать «Свойства». Далее переходим во вкладку «Совместимость» и ставим галочку «Выполнить запуск от имени Администратора».

В случае, если такая ошибка возникала в программе Skype, то проблема может крыться в отсутствии браузера Internet Explorer, который нужен для нормальной работы некоторых функций Windows. В данном случае рекомендуем выполнить следующие действия:

  • Открываем «Проводник», нажимаем на кнопке «Удалить или изменить программу».

  • Появиться окно с установленными программами. В меню слева выбираем «Включение или отключение компонентов Windows».

  • Появиться небольшое окно. Нужно найти браузер Internet Explorer. Возле него должна стоять отметка. Смотрим также версию программы. Для нормальной работы Скайпа нужен Internet Explorer 11.

  • Если у вас версия браузера ниже, то нужно обновить операционную систему, включив ту версию браузера, которая есть. Если же вы обновили Windows, но версия браузера не изменилась, то можно перейти на официальный сайт Майкрософт и скачать Internet Explorer 11. Обращаем внимание на разрядность программы. Нужно скачать софт в соответствии с разрядностью своей Windows.
  • Устанавливаем программу, обязательно обновляем сам Скайп.

Если ошибка и после данных манипуляций не была исправлена, то пробуем перерегистрировать файл dll. Для этого советуем открыть командную строку с правами Администратора и ввести regsvr32 jscript.dll.

Перезагружаем систему, чтобы изменения вступили в силу и проверяем, исправлена ли ошибка.

Также на зарубежных форумах пользователи указывали, что ошибка A JavaScript error occurred in the main process появлялась по причине неверной работы службы Quality Windows Audio Video Experience. Исправить неполадку удалось путем изменения типа запуска службы с ручного на автоматический. Для этого нужно нажать «Win+R» и ввести «services.msc». Находим службу.

Двойным кликом открываем окно службы и меняем тип запуска.

Перезагружаем систему и проверяем, появляется ли ошибка или нет.

Если исправить ошибку A JavaScript error occurred in the main process вышеуказанными способами не удалось, рекомендуем проверить систему на вирусы и выполнить восстановление системы с помощью контрольной точки или установочного диска.

A JavaScript Error Occurred in the Main Process

Updated June 2023: Stop these error messages and fix common problems with this tool. Get it now at this link

  1. Download and install the software.
  2. It will scan your computer for problems.
  3. The tool will then fix the issues that were found.

A special error “A JavaScript Error Occurred in the Main Process“, occurs when users try to run one of the above programs. The window contains more information about the error, but ordinary users can not interpret the message correctly, so the details are useless.

The “A JavaScript Error Occurred in the Main Process” error appears, as mentioned, on both devices, and the problem is particularly related to the program. Users call the Slack app, the Discord program, and Microsoft commands causing problems and triggering an error in window message.

Windows users get the error message “Exception not caught” – a JavaScript error has occurred in the underlying process. It is triggered when trying to run certain apps in Windows 10, including the messaging apps Discord and Skype.

The main reason for this error is not entirely clear, but the main reason could be that the application, its database, or settings are corrupt.

Error “A JavaScript Error Occurred in the Main Process” in Discord or in Microsoft Teams, other programs that can be fixed with workarounds. Sometimes downloading an application from another source also solves the problem with repeated pop-ups.

It doesn’t matter if the popup occurred with “A JavaScript Error Occurred in the Main Process” since the error occurred in Slack or at another launch of the application, the reason may be the same. Special reasons, which are most often reported, are damaged settings in the program itself, required or disabled administrator rights, old settings.

Cause 1: Damaged application or parameters

  • This is one of the main reasons for the Javascript error that occurred in the main process. Often, these errors occur when an application is misconfigured or when the application is damaged.

Cause 2: Windows AV is not active

  • Many users do not know about this problem. You can find it in the device settings or drivers to check if Windows Audio Video Experience is active. If it isn’t, make sure it’s enabled to solve the problem.

Cause 3: Administrator Privileges

  • Applications often require that you work with administrator rights. This is also one of the reasons why applications such as Skype to Discord display Javascript errors that occur in the main process.

How do I overcome this or fix this Javascript error, which appeared in the main error process? Read this article for possible solutions. We will reveal not one, not two, but four methods of work to fix this Javascript bug. Let’s start discussing the methods without wasting time.

What causes this JavaScript error in Discord?

There are not many identified causes of this problem, and most of the diagnostic methods that you can perform are based on resetting the differences or setting them up in some form or other. However, we have prepared a shortlist which you can read:

The discord or its settings may have been corrupted:

  • In this scenario, the installation of the disk is wrong, so either you reset the settings or you reinstall the application.

Qualitative Windows Audio Video Experience service does not work:

  • This service is necessary for the application as it is closely related to the basic functionality of the program. Make sure that it runs automatically.

Conflicts work with administrator privileges:

  • Conflicts with administrator privileges are known to cause this problem.

When accessing the Conversation app from a computer running Windows 10, you may receive an error message “A javascript error has occurred in the main process”. Damaged Disord files or missing certain audio services may cause this problem on your computer. To solve this problem on your computer, please follow the steps below carefully.

How to fix “A JavaScript Error Occurred in the Main Process”?



Updated: June 2023

This tool is highly recommended to help you fix your error. Plus, this tool offers protection against file loss, malware, and hardware failures, and optimizes your device for maximum performance. If you already have a problem with your computer, this software can help you fix it and prevent other problems from recurring:

  • Step 1 : Install the PC Repair and Optimizer Tool. (Windows 10, 8, 7, XP, Vista).
  • Step 2 : Click Start Scan to determine what problems you are experiencing with your computer.
  • Step 3 : Click Repair Allto resolve all problems.

download

How to fix A JavaScript Error Occurred in the Main Process

Reinstall your program

Reinstall your program

In this first situation, the installation of your program is faulty, so you must either reset or reinstall the application.

Simply follow these steps :

  • Press Windows + I
  • Get into Skype
  • Right-click on the mouse
  • Select Uninstall
  • Once this operation is complete, download the latest version again from the publishers website.

Delete your program folders in the %AppData folder

Delete your program folders in the AppData folder

This procedure is similar to the one described above, except that you manually delete all program data from your PC.

  • Open an explorer window
  • You can do this by pressing Windows + E.
  • Select this PC.
  • Access this location on your PC
  • C:UsersYOURUSERNAMEAppDataYOURPROGRAMNAME
  • Right click on the program folder
  • Select Uninstall.

If you get an error message indicating that the program cannot be uninstalled because it is in use, first log in and out of the Task Manager.

Automatically start the Windows Audio Video Experience service

  • Press windows + R
  • Type services.msc
  • Scroll down the list until you see the Quality of the Windows Audio Video Experience
  • Right-click and select Properties
  • From the “Startup Type” drop-down menu, select “Automatic”.

Automatically start the Windows Audio Video Experience service1

The likelihood of you getting an error flagged as such is slim:

Windows was unable to start the service on the local computer. Error 1079: The account listed for this service is different from the account listed for the other services in the same process.

If this happens, do the following:

Press Windows + R
Type services.msc
Scroll down the list until you see the Quality of the Windows Audio Video Experience
Right-click and select Properties.
Click on the “Login” tab
Click on the “Browse” button.
You will see an input box with the name Enter the name of the object you want to select
Enter the name of your Microsoft Windows account
Click Verify Names.
Wait until your name is displayed, and then click OK.
Enter your Windows account password in the Password field.

Automatically start the Windows Audio Video Experience service

Run the program without administrator rights

  • Find the executable file of your program
  • Right-click and click Properties
  • Click the Compatibility tab
  • Uncheck the box next to “Run this program as administrator“.
  • Press OK

Run the program without administrator rights

The problem should now be resolved.

How to Solve the “A JavaScript Error Occurred In The Main Process” in Discord

Remove Discord temporary files

A diskette is constantly storing temporary files that can interfere with an application; deleting them can solve the problem. Learn how to delete temporary disk files ;

  1. Open Windows Explorer and paste this path into the address bar of Windows Explorer: “C:UserYour User NameAppDataDiscord”. Remember to replace “YOUR USER NAME” in the path with your PC name.
  2. There should be an “appdata” folder, and if it is not available, you will need to view the hidden files. You can do this by clicking on the “View” tab in the File Explorer menu, and then clicking on “Hidden Objects” to check the box. All hidden files will be displayed and you will be able to view “AppData”.
  3. The “Discord” folder is in the “AppData” folder, you must delete this folder, you may get a message that some files cannot be deleted because they are in use. In this case, you should make sure that the Discord app is closed, restart your computer before performing this step, and close the Spotify app if it is running.
  4. Another effective way to remove data from the app is to open the “Run” dialog and type “% localappdata%”, then click OK.
  5. Inconsistencies are listed in the folder that opens, delete that folder by right-clicking.
  6. Reboot the computer now to see if the problem is resolved.

Remove Discord temporary files

Whitelisting inconsistencies in your antivirus software

Some antivirus software or even the Windows firewall may block certain mismatch files that cause problems with the application. Regardless of your antivirus software, you should check your settings for granting Discord permissions.

Change windows Audio Video Experience services settings

This service if not running, Discord can’t work properly. So you need to check the startup type for ‘windows audio-video experience services’ settings to see if the problem is solved. The configuration on startup should be changed from Manual to Automatic, and here are the steps to change that;

  1. Press Windows + R to open run Dialogue.
  2. Type ‘msc’ in the dialogue box.
  3. There would be a list of windows services, you need to find ‘Quality Windows Audio Video Experience Service’, right-click on it, and select properties.
  4. You’ll be able to see whether it’s running or not, if it’s running you should click ‘Stop’ and click ‘Start’ to run it again.
  5. Check whether the startup type is set as Automatic, if not you need to change it to automatic. Click ok for any dialogue box that will appear.

In some cases, you might receive an error message that reads:

Windows could not start the service on Local Computer. Error 1079: The account specified for this service differs from the account specified for other services running in the same process.’

You need to follow these steps in order to bypass this error;

  1. Open run as usual by typing Windows + R keys.
  2. Type or paste “msc” and click OK.
  3. Locate “Quality Windows Audio Video Experience”, right-click on it, and select properties.
  4. Click the ‘Log On’ tab.
  5. Click on the “Browse” button.
  6. In the entry box enter your Windows account name.
  7. Click check names.
  8. Your computer name will show up; you should click OK.
  9. You then type your Windows password in the box provided.

Configuring the Discord to work without administrator rights

As mentioned earlier, setting admin rights can result in a “JavaScript error occurred in the main process” error, you need to change the settings of your application to make it work properly.

You can find out how to solve this problem here;

  1. Locate the disk executable either from the Start menu or by typing its name into a Windows search.
  2. Right-click the disk executable and select Properties.
  3. There is a compatibility tab in the properties window, you need to uncheck the “Run this program as an administrator” box.
  4. Click the “Apply changes” button.
  5. Confirm each dialog box that appears.
  6. Now restart your computer and run the hard drive to make sure the problem is resolved.

Reinstall your Discord program

If the error hasn’t gone away at this time, you need to reinstall the application, and before reinstalling Discord, you need to uninstall the application from your PC and delete any files associated with Discord.

The best way to uninstall the application is to use the Control Panel, select Programs and Features, find Discord, and uninstall the application.

Then download the new installation files from the Discord website, as it is free. Do the disk configuration and run the installation. When you’re done, the new Discord app will be completely installed on your computer and there should be no problems.

If the problem persists, the error is probably related to system settings. And we have already outlined all possible solutions to this problem.

So far, these are the solutions to fix the “A JavaScript Error Occurred in the Main Process” in Discord, and we hope that they will help you to fix this error.

APPROVED: To fix Windows errors, click here.

Frequently Asked Questions

  1. Reinstall your program.
  2. Delete your program folders in the %AppData folder.
  3. Automatically start the Quality Windows Audio Video Experience service.
  4. Run your program without administrative rights.

The «JavaScript error occurred in the main process» error usually appears when you start Discord on your computer.

The error message box usually contains a variety of information about the error, but casual users may have difficulty interpreting it.

Script errors are most likely caused by a bug in a script hosted on another domain (e.g., CDN scripts). As a result, the user’s browser stops the execution of the script to prevent an attack called «cross-site request spoofing».

There are two types of JavaScript errors:

Syntax error: Occurs when there is an error in the way the code is written, such as a typo or a missing character.

Execution error: Occurs when the script cannot execute its instructions; for example, when the specified object cannot be found.

Post Views: 4,480

Download PC Repair Tool to quickly find & fix Windows errors automatically

Some users are reporting a generic error message – A JavaScript error occurred in the main process, Uncaught Exception that is triggered when they try to launch some apps on Windows 11/10. In this post, we will show you how to resolve this issue. There aren’t many determined causes for this problem, however, the main reason can be that the app, its database or its settings have most likely gone corrupt.

A JavaScript error occurred in the main process

If you receive A JavaScript error occurred in the main process, Uncaught Exception message when you try to open apps like Skype, Discord, etc, in Windows 11/10, then you can carry out the following suggestions:

  1. Delete the app data folders in %AppData% and %LocalAppData%.
  2. Re-register the JavaScript dll file.
  3. Reinstall Skype, Discord, etc, app that is having problems.

Now let’s see how you can apply this solution(s) in practice.

1) Delete the app data folders in %AppData% and %LocalAppData%.

Deleting the %AppData% and %LocalAppData% folders should reset the app settings and possibly resolve the JavaScript error which is preventing you from opening the app.

Here’s how you can delete these folders:

Launch Windows Explorer and click on This PC and then navigate to the following location:

C:Users%username%AppData<app>

The <app> place-holder should be the name of the app throwing up the JavaScript error.

If you are unable to see the AppData folder, you may need to turn on the option that enables you to view hidden files and folders.

Delete the app folder in the AppData folder.

Next, press the Windows Key + R key combination in order to bring up the Run dialog box. Type in the environment variable below and hit Enter.

%localappdata%

Locate the problematic app folder in the folder which opens, right-click on it, and click Delete.

Make sure that the folders are completely deleted and that there are no more remaining files in it. Check to see if the  ‘A JavaScript Error Occurred in the Main Process’ still appears after restarting your computer and you launch the app.

2) Re-register the JavaScript dll file

Registering the JavaScript DLL file using the built-in Regsvr.exe could help. To do this, open a Command Prompt as an administrator, type the following and hit Enter:

regsvr32 jscript.dll

3) Reinstall the app in question

Although from one of our case scenarios presented above, the user stated that reinstalling the app didn’t fix the issue. Nevertheless, we still recommend you try to uninstall then reinstall the app.

I hope this helps you resolve this JavaScript error!

Obinna has completed B.Tech in Information & Communication Technology. He has worked as a System Support Engineer, primarily on User Endpoint Administration, as well as a Technical Analyst, primarily on Server/System Administration. He also has experience as a Network and Communications Officer. He has been a Windows Insider MVP (2020) and currently owns and runs a Computer Clinic.

Sometimes when you try to open an application in Windows it may pop an error “A javascript error occurred in the main process” Most of the time it happens with chatting apps like Discord, Skype, or Microsoft Team but maybe it happens with VSCode or Forticlient VPN.

It doesn’t matter which application cause this error for you, matter how you can fix it with minimum effort. In this article, I share the exact way to fix this error.

All the articles on this topic have the almost same content but all of them still missing one thing that may the reason for you.

What causes the ‘A JavaScript Error Occurred in the Main Process’ error?

  • Your program or its settings may have gone corrupt
  • The Quality Windows Audio Video Experience service is not running
  • Your app runs with administrator permissions
  • You don’t have the right version of Microsoft Visual C++ Redistributable

How to fix the “A javascript error occurred in the main process” error?

Fix a javascript error occurred in the main process (Video)
  1. Ensure that you have the Microsoft Visual C++ Redistributable

Very Important Note: If you are not sure about it don’t worry just leave it for now, follow the rest steps but after that, if you still have the same error then download Microsoft Visual C++ Redistributable.

  1. Open Run program by searching it.

Open Run program by searching it

  1. Type “%appdata%” in the Run window

Type %appdata% in the Run window

Type %appdata% in the Run window
  1. Press Enter, it will open a folder
  2. Search for the application folder (In our case it’s the folder name is “Discord” because in our case Discord cause this error).
  3. Delete it by right-clicking on it and then choosing the delete option.

Delete it by right-clicking on it and then choose the delete option.

Delete it by right-clicking on it and then choose the delete option.
  1. Close that window
  2. Open the Run program again.

Open Run program by searching it

  1. Type “%localappdata%” in the Run window

Type %localappdata% in the Run window

Type %localappdata% in the Run window
  1. Press Enter, it will open a folder.
  2. Search for the application folder (In our case it’s the folder name is “Discord” because in our case Discord cause this error).
  3. Delete it by right-clicking on it and then choose the delete option.

Delete it by right-clicking on it and then choose the delete option

Delete it by right-clicking on it and then choose the delete option
  1. Close that window
  2. Now, Open Services by searching it

Open Services by searching it

Open Services by searching it
  1. Scroll and find a service called “Quality Windows Audio Video Experience”

Scroll and find a service called Quality Windows Audio Video Experience

Scroll and find a service called Quality Windows Audio Video Experience
  1. Right-click on it and select Properties

Right-click on it and select Properties

Right-click on it and select Properties
  1. Select the Automatic option under the Startup type

Select Automatic option under Startup type

Select Automatic option under Startup type
  1. If the service is started (you can check that just next to the Service status message), you should stop it by clicking the Stop button in the middle of the window. Anyway, run it again by clicking the Start

Stop it by clicking the Stop button. Run it again by clicking the Start

Stop it by clicking the Stop button. Run it again by clicking the Start
  1. (Optional) If you see an error when clicking on Start follow this step. Navigate to the Log On tab and click on the Browse buttonUnder the “Enter the object name to select” entry box, type in your account’s name, click on Check Names Click OK when you are finished, and type in the password in the Password box
  2. Now, Uninstall the application and install it again (if the error is not resolved)

The below steps are only for Discord

  1. After reinstalling Discord, search for Discord

Search for Discord

Search for Discord
  1. Then right-click on it
  2. Click on “Open file location” from the menu

Then right-click on it

Then right-click on it
  1. It will open a folder with Discord selected.
  2. Right-click on the Discord.exe (automatically selected file).

Right-click on the Discord.exe

Right-click on the Discord.exe
  1. Click on Properties

Click on Properties

Click on Properties
  1. Go to the Compatibility tab

Go to the Compatibility tab

Go to the Compatibility tab
  1. Uncheck the “Run this program as an administrator” option

Uncheck the Run this program as an administrator option

Uncheck the Run this program as an administrator option
  1. Click on OK

If you still have the error go to step 1 you may forget about it.

Let me know if this article does not help you to solve the problem.

In conclusion, the “A JavaScript Error Occurred in the Main Process” error can be quite frustrating, but it can be fixed easily by following the steps mentioned in this article. It is important to note that different applications may have different solutions, so it is crucial to follow the steps that are specific to your application. In case you are not sure about the Microsoft Visual C++ Redistributable or any other step, it is better to skip it and follow the rest of the steps. If you still face the error after following all the steps, it is recommended to contact the application’s support team for further assistance. Hopefully, this article has helped you fix the issue and get back to using your favorite application without any errors.

Понравилась статья? Поделить с друзьями:
  • Windows 10 ошибка critical process died при включении
  • Windows 10 ошибка 7024
  • Windows 10 ошибка 70080035
  • Windows 10 ошибка 6008 отключение питания
  • Windows 10 ошибка 411