Lỗi 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 javascript error occurred in the main process

*
Opening the LocalAppData folderLocate the Discord folder in the folder which opens, right-click on it, and choose the DeleteMake sure that the folders are completely deleted và that there are no more remaining files in it. Kiểm tra to see if the Discord error still appears after restarting your computer!

Solution 2: Change the Startup Type of the quality Windows Audio clip Experience Service

Changing the startup type of the chất lượng Windows Audio video clip Experience service from Manual to Automatic managed lớn resolve the JavaScript error for many users. They also reported that the method managed lớn resolve the JavaScript error for apps other than Discord as well! Follow the steps below in order lớn resolve the problem!

Open 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 and click OK in order to xuất hiện the Services tool.
*
Running the Services toolLocate the quality Windows Audio video Experience service on the list, right-click on it and select Properties from the context thực đơn which appears.If the service is started (you can kiểm tra 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.
*
Setting the chất lượng Windows Audio video clip Experience service’s startup type to AutomaticMake sure that the option under the Startup type menu in the service’s properties window is set to 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 click on Start:

"Windows could not start the service on Local Computer. Error 1079: The account specified for this service differs from the trương mục 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 in order to mở cửa the service’s properties window. Navigate to 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, click on Check Names and wait for the name to become available.Click OK when you are finished & type in the password in the Password box when you are prompted with it if you have set up a password. It should now start without issues!

Solution 3: Run Discord without Administrator Privileges

Some users have noticed that the ứng dụng actually works whenever they are not logged in using their administrator account. This leads us lớn believe that the actual problem regarding the tool is the administrator permissions.

It’s not always the best idea khổng lồ 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 và change its properties by right-clicking its entry either on the Desktop, the Start menu, or the tìm kiếm results window and choose Properties. Navigate khổng lồ the Compatibility tab in the Properties window & 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 lớn confirm your changes & Discord should launch without admin privileges from now on. Open it by double-clicking its icon and try to see if the error still appears.

Xem thêm: Chúc Mừng Năm Mới 2018 Gif Chúc Mừng Năm Mới 2018, Funny Happy New Year Gifs

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 to follow every step correctly if you want khổng lồ reset your Discord installation và make it work properly again.

First of all, make sure you are logged in with an administrator tài khoản as you won’t be able to lớn delete programs using any other account.Click on the Start menu and open Control Panel by searching for it. Alternatively, you can click on the cog icon in order to mở cửa Settings if you are using Windows 10.In Control Panel, select khổng lồ View as: Category at the đứng đầu right corner và click on Uninstall a Program under the Programs section.
*
Uninstall a program in Control PanelIf you are using the Settings app, clicking on Apps should immediately xuất hiện a list of all installed programs on your PC.Locate Discord in Control Panel or Settings and click on Uninstall.Discord’s uninstall wizard should open, prompting you up with a choice khổng lồ “completely remove Discord on your computer”. Choose Yes.Click Finish when the uninstalling process finishes.

If you managed to uninstall the tool properly, it’s time lớn simply reinstall the Discord tool by downloading the latest installer from their website, running it from the Downloads folder, and 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 khổng lồ fail its installation if has parallel processes running beforehand. The only way to counter this is to lớn stop all Discord processes from Task Manager.

Press Windows + R, type “taskmgr” in the dialogue box, and press Enter.
*
Running the Task ManagerOnce in the task manager, search for allDiscordprocesses, click on it, và selectEnd Process.Now try installing and see if it fixed the problem.

If you can’t able to end some of the Discord Instances you can try this workaround with Command Prompt khổng lồ get rid of them. Follow these steps:-

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

taskkill /f /im discord.exeNow check to see if the issue still persists.

Xem thêm: Chiêm Ngưỡng Sao Thổ Qua Kính Thiên Văn ? (Phần 1) Bạn Có Thể Thấy Gì Qua Kính Thiên Văn

Solution 6: Using Discord PTB

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