Lỗi a javascript error occurred in the main process

     

The “A JavaScript error occurred in the main process” error usually appears when starting up Discord on your computer. The error message window usually contains various information regarding the error but it can hardly be interpreted by casual users.

Bạn đang xem: Lỗi a javascript error occurred in the main process

*
Opening the LocalAppData folderLocate the Discord thư mục in the folder which opens, right-cliông chồng on it, and choose the DeleteMake sure that the folders are completely deleted and that there are no more remaining files in it. Cheông xã to lớn see if the Discord error still appears after restarting your computer!

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

Changing the startup type of the Quality Windows Audio Video Experience service from Manual to Automatic managed khổng lồ resolve the JavaScript error for many users. They also reported that the method managed khổng lồ resolve the JavaScript error for apps other than Discord as well! Follow the steps below in order to resolve sầu the problem!

xuất hiện the Run utility by using the Windows Key + R key combination on your keyboard (press these keys at the same time. Type “services.msc” in the newly opened box without the quotation marks & cliông xã OK in order to lớn open the Services tool.
*
Running the Services toolLocate the Quality Windows Audio Video Experience service on the danh sách, right-clichồng on it and select Properties from the context menu which appears.If the service is started (you can kiểm tra that just next to lớn 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.
*
Setting the Quality Windows Audio Video Experience service’s startup type khổng lồ AutomaticMake sure that the option under the Startup type menu in the service’s properties window is mix lớn Automatic before you proceed with other steps. Confirm any dialogue boxes which may appear when changing the startup type.

You may receive the following error message when you cliông chồng on Start:


"Windows could not start the service on Local Computer. Error 1079: The account specified for this service differs from the tài khoản specified for other services running in the same process."If this happens, follow the instructions below to lớn fix it.

Follow steps 1-3 from the instructions above sầu in order to lớn open the service’s properties window. Navigate to lớn the Log On tab and click on the Browse… button.

*

Under the “Enter the object name khổng lồ select” entry box, type in your account’s name, clichồng on Cheông xã Names và wait for the name lớn become available.Cliông chồng OK when you are finished and type in the password in the Password box when you are prompted with it if you have sầu phối up a password. It should now start without issues!

Solution 3: Run Discord without Administrator Privileges

Some users have noticed that the tiện ích actually works whenever they are not logged in using their administrator trương mục. This leads us khổng lồ believe sầu that the actual problem regarding the tool is the administrator permissions.

It’s not always the best idea to run random programs as an administrator và various users have reported that running Discord without admin permissions actually resolved the problem for them!

Locate the Discord executable and change its properties by right-clicking its entry either on the Desktop, the Start thực đơn, or the Search results window & choose Properties. Navigate to lớn the Compatibility tab in the Properties window và uncheck the box next to the Run this program as an administrator option before applying the changes.
*
Unchecking the Run this program as an administrator checkboxMake sure you confirm any dialogs which may appear for you to confirm your changes & Discord should launch without admin privileges from now on. mở cửa it by double-clicking its icon and try khổng lồ see if the error still appears.

Solution 4: Reinstall Discord

Performing a reinstall is one of the most important methods in this article as this solution has worked for plenty of people who struggled with this problem. This solution is generic but it’s vital lớn follow every step correctly if you want to lớn rephối your Discord installation & make it work properly again.

Xem thêm: Thám Tử Lừng Danh Conan - Conan Đối Đầu Với Siêu Trộm Kid,

First of all, make sure you are logged in with an administrator trương mục as you won’t be able lớn delete programs using any other account.Cliông xã on the Start menu & open Control Panel by searching for it. Alternatively, you can clichồng on the cog icon in order khổng lồ open Settings if you are using Windows 10.In Control Panel, select khổng lồ View as: Category at the top right corner và clichồng on Uninstall a Program under the Programs section.
*
Uninstall a program in Control PanelIf you are using the Settings tiện ích, clicking on Apps should immediately open a danh mục of all installed programs on your PC.Locate Discord in Control Panel or Settings & clichồng on Uninstall.Discord’s uninstall wizard should open, prompting you up with a choice to lớn “completely remove sầu Discord on your computer”. Choose Yes.Clichồng Finish when the uninstalling process finishes.

If you managed to uninstall the tool properly, it’s time to lớn simply reinstall the Discord tool by downloading the latest installer from their trang web, running it from the Downloads folder, & following the instructions on-screen until the process finishes. The Javascript error should not appear anymore.

*
Downloading Discord

Solution 5: Closing all Discord Processes

We will try ending all processes from the task manager and try installing Discord again. Discord is known to lớn fail its installation if has parallel processes running beforehand. The only way to counter this is lớn stop all Discord processes from Task Manager.

Press Windows + R, type “taskmgr” in the dialogue box, & press Enter.
*
Running the Task ManagerOnce in the task manager, search for all Discord processes, cliông chồng on it, và select End Process.Now try installing & see if it fixed the problem.

If you can’t able to lớn end some of the Discord Instances you can try this workaround with Comm& Prompt lớn get rid of them. Follow these steps:-

Click on the Windows Search bar and type “Comm& Prompt”, right-click on it, và run as administrator.Type the following comm& and press enter:-

taskkill /f /yên ổn discord.exeNow check to see if the issue still persists.

Solution 6: Using Discord PTB

Discord PTB is discord’s chạy thử beta build, you can tải về it from the official discord website. It will install & function just lượt thích Discord should however it have its own data & it will not interact with your normal discord. You can download Discord PTB (here).


By Kevin ArrowsMay 28, 2021
5 minutes read
*

Kevin ArrowsNetwork Engineer (LAN/WAN) |
Kevin is a dynamic và self-motivated information giải pháp công nghệ professional, with a Thorough knowledge of all facets pertaining to lớn network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.
About | Privacy Policy | Cookie Policy | Update Consent| Terms và Conditions | Editorial Guidelines | Affiliate Disclosure | Contact Us
Close
HOW-TOBUYER GUIDES

Expert Tip


How to Fix the ‘A JavaScript Error Occurred in the Main Process’ Error in Discord?

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt & missing files. This works in most cases, where the issue is originated due to lớn a system corruption. You can download Restoro by clicking the Download button below.