Дискорд джава скрипт ошибка

Ошибка Fatal JavaScript error occurred Discord – что делать? Такое уведомление чаще всего появляется во время установки программы на компьютер, и связано оно с некорректной работой операционной системы. Но столкнуться с неприятным сообщением возможно даже во время общения в мессенджере. Все объясняется тем, что на ПК попросту отсутствуют или повреждены необходимые для корректного функционирования приложения файлы. И для того, чтобы успешно устранить сбой, требуется провести небольшую чистку и переустановить программу.

Что это за ошибка и почему возникает?

Как можно понять по названию, неполадка «Fatal JavaScript error occurred» Discord связана с языком программирования JS, на котором пишутся многие приложения. И подобное уведомление свидетельствует о том, что во время выполнения одного из сценариев произошла ошибка, повлиявшая на работу программы. Если вы столкнулись со сбоем во время установки, то это указывает на повреждение или отсутствие необходимых файлов. А если во время использования мессенджера – на системную неполадку.

Но это лишь одна из причин, почему в Discord появилась ошибка JavaScript (Fatal error occurred), поэтому не стоит сразу отбрасывать и другие варианты:

  • несовместимость установленных на компьютере приложений (так называемый конфликт компонентов ПО);
  • наличие старых файлов в проводнике ПК, препятствующих корректному функционированию новой версии Дискорда;
  • действие вирусов, мешающих работе всей системе в целом;
  • устаревшая версия Discord.

И, как показывает практика, самостоятельно установить причину ошибки Fatal JavaScript error occurred практически невозможно. Но в большинстве случаев все связано с повреждением файла discord_voice, отвечающего за звук. Что касается вариантов решения проблемы, то их немного, поэтому переходите к следующей части статьи-инструкции.

Как исправить ошибку JavaScript в Дискорд?

Уже давно разработан способ решения проблемы, когда при запуске Дискорда появляется ошибка Java. И его суть заключается в том, чтобы сначала завершить все процессы, а после очистить папки с программой. Для наглядности нами была составлена пошаговая инструкция, поэтому настоятельно рекомендуем обратить на нее внимание:

  • Перезагружаем компьютер. Если неполадка Fatal JavaScript error occurred осталась, то переходим к следующему шагу.
  • Открываем стандартный диспетчер задач Windows. Кто не знает, то сделать это получится с помощью горячих клавиш Ctrl+Shift+Esc. Заходим во вкладку «Процессы» и принудительно завершаем задачи, связанные с приложением Discord. Для этого ЛКМ кликаем по пункту с названием программы, а после выбираем «Снять задачу».

  • Запускаем окошко «Выполнить», воспользовавшись клавишами Win+R.
  • Сначала вводим команду %localappdata%, а после – %appdata%. Такое действие приведет к автоматическому открытию скрытых папок в проводнике.

  • Вам нужно отыскать все директории, связанные с Дискордом, а потом удалить их.

  • Закрываем приложение и перезагружаем компьютер.
  • Выполняем полное удаление программы с ПК, воспользовавшись панелью управления.

В результате несложных действий в Дискорд ошибка JS (Fatal JavaScript error occurred) успешно исчезнет. Вам останется только переустановить мессенджер и убедиться, что неполадка полностью устранена. Если этого не произошло, то значит причину нужно искать в самой операционной системе. Например, выполнив проверку на вирусы. Также убедитесь, что у вас загружена последняя версия Discord.

Таким образом, мы подробно рассмотрели, что делать, если Дискорд не запускается и появляется уведомление Fatal JavaScript error occurred. Вам потребуется всего лишь очистить скрытые папки от файлов, а после переустановить приложение. Остались дополнительные вопросы по теме материала? Тогда смело задавайте их в комментариях под статьей!

Рекомендуем:

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.

On starting the app the "discord fatal javascript error" display

Error Message

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.

  1. Click the search button in the taskbar. Type and open This PC.
    Type This PC in Search bar
    This PC
  2. Go to the following location.
  3. C:\Users\YOURUSERNAME\AppData\Discord
  4.  Click on the “View” tab in the File Explorer menu.
  5. Locate and click on the “Hidden items” checkbox in the Show/Hide section.
    View hidden items
  6. Delete the Discord folder in the AppData folder.
  7. Click the search button in the taskbar. Type and open %localappdata%.
    Open localappdata folder to resolve "discord fatal javascript error"
    Localappdata
  8. Locate and delete the Discord folder.
  9. 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.

  1. Click the search button in the taskbar. Type and open services.msc.
  2.  Locate Quality Windows Audio Video Experience.
    Look for Windows Audio Video Experience in Services
    Quality Windows Audio Video Experience
  3. Right-click on it and select properties.
  4. If the service is already running, click the stop button.
  5. Now click the start button.
    Start the Quality Windows Audio video experience service to sort out "discord fatal javascript error"
    Start service
  6. Now make sure you select Automatic in the Startup type dropdown menu.
    In startup type Select Automatic
    Automatic
  7. When you click OK, an error might appear stating Windows could not start the service on the local computer.
  8. If it happens, go back to the properties and click the Sign On tab.
  9. Click the browse button.
    Under the Log On option click the Browse button
    Browse
  10. Add the name of your account in the Enter the name of the object to select the box.
    Select user to fix "discord fatal javascript error"
    Name the object
  11. Click OK.
  12. 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.

  1. Right-click on the Discord executable and click properties.
  2. Go to the compatibility tab.
  3. Uncheck the box parallel to Run this program as administrator.
    Uncheck the box Run this program as an administrator to fix "discord fatal javascript error"
    Discord Properties
  4. 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:

  1. Click the search button in the taskbar. Type and open Control Panel.
  2. Click on Uninstall a program.
    In control panel click on Uninstall a program
    Uninstall
  3. Now locate Discord. Right-click on it and select uninstall.
    In Programs and features select discord and click on uninstall
    Uninstall Discord
  4. Delete the Discord folder from Appdata and LocalData folders as indicated in the first solution.
  5. Download the latest version of Discord from your favorite browser.
  6. Double-click the downloaded file to install this tool. It will take some time to download some additional files.
    Reinstall Discord to sort out "discord fatal javascript error"
    Installing discord
  7. 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.

  1. Press “Windows’ + “R” to open the Run box and type in “taskmgr” and press “Enter”.
    Typing in "taskmgr"
    Typing in “taskmgr”
  2. In the Task Manager, click on the “Discord” option from the list of running processes and select the “End Task” button.
  3. Now that you have ended Discord, press “Windows’ + “R” and type in “Control Panel”.
    Typing in Control Panel
    Typing in Control Panel
  4. Click on the “Uninstall a Program” button, right-click on the “Discord” button and select “Uninstall”.
  5. Follow any on-screen prompts to uninstall the app from your computer.
  6. Now, navigate to the “AppData” and the “Local Data” folders and delete the Discord folder from there as indicated in the first step.
  7. After doing so, press the “Windows’ + “R” buttons to launch the Run box and type in “Cmd”.
    Typing in cmd
    Typing in cmd
  8. Press the “Shift+Ctrl+Enter” keys to grant admin privileges to the command prompt.
  9. Type in the following command and press “Enter” to execute it.
    gpupdate /force
  10. Wait for the process to complete and close the command prompt.
  11. Reinstall Discord after downloading from their website and check to see if the error still persists.

If you need further assistance, contact here.

Photo of Alan Adams

Alan is a hardcore tech enthusiast that lives and breathes tech. When he is not indulged in playing the latest video games, he helps users with technical problems that they might run into. Alan is a Computer Science Graduate with a Masters in Data Science.

Discord Javascript Error

Discord is quite a useful application when it comes to gaming. However, since the Discord community has been increasing drastically, it is not just a gamers hub anymore.

Like all other apps, Discord is also prone to many errors, and “Discord Javascript Error” is one of them. In this guide, let me help you getting solve this error in no time.

Let’s go through each solution and find which one is going to solve the problem.

What Is JavaScript Discord Error? And How To Fix It?

Many users have reportedly experienced this Javascript Error. However, it is one of those errors that have little to no underlying reasons discovered. There is not much information about this error on Discord’s official website as well. However, this error has some tried and tested solutions.

Head to the solutions below to run the Discord Error-free:

Related guides:

  • Discord failed to update
  • How to fix no route Discord
  • Discord won’t open

#1. Delete Discord Files

Just like all other programs, Discord stores temporary data on the computer to make it function as efficiently as possible. But, sometimes, these data files are the main culprit behind displaying this error and interfere when a program runs.

Now, to start the Discord error-free, it is important to delete the troublesome files.

Follow these steps to delete the discord files:

  1. First of all, Close the Discord from the Task Manager. To do so, right-click on the taskbar and select task manager from the drop menu. Locate the discord process from the running programs and select End Task.Discord icon in Task Manager
  2. Now open the run dialogue box either by searching in the Windows Search Bar or by right-clicking the Windows start menu icon and then selecting the run from the options.
  3. Once the run windows appear, type “%appdata%” in the dialogue box and hit the run button.Type Appdata in Windows Run Dialogue Box
  4. Now once the corresponding Window opens, search for the folder named “discord” and right-click and press delete from the menu
  5. Now launch the run dialogue box once again as in step 2.
  6. Type “%localappdata%” in the dialogue box and press the run button.
  7. Again find the Discord folder in this directory and delete it by right-clicking and then selecting delete from the menu.Discord Folder in LocalAppData
  8. Go to the Discord installation folder and relaunch the Discord setup. Follow the on-screen installation instructions.

#2. Whitelist/Remove Discord Files From Antivirus Software

Almost all the well-known antiviruses block some of the Discord installation files altering the access to those files.

Sometimes this blockage of files can cause a JavaScript error for Discord. One common file that is totally under the eye of every Antivirus is the “discord_voice” file. Now, to fix this issue, the simplest thing to do is to whitelist the discord files from Antivirus that is picking up and quarantining.

So there are tons of Antiviruses available in the market, and each has a different way to whitelist files. However, we are here using ever famous and free Avast antivirus.

  1. Firstly, open the Avast by right-clicking the Avast icon and selecting the Open Avast User interface option from the menu.
  2. Now once the Avast interface opens, click on the Protection tab from the options running down on the left of the Avast Screen.Avast antivirus dashboard
  3. Click on the Virus Chest option displayed on the right. In this section, you’ll find all the quarantined files.Virus Chest Option in Avast
  4. Now locate the Discord-related files in the list. Discord files can be identified easily as they start with Discord_ mostly or some similar variant.
  5. Now, as you’ll hover over the files, three dots will appear, click those and then select “restore and add an exception” from the given list.
  6. Now repeat step 5 above for each discord file.
  7. Restart the installation for Discord.

To avoid any future interruptions from Avast when installing the Discord, we can add the discord folders in exception in Avast. That means the installation process will be smooth without any interruptions from Avast or Avast, putting the files again in Virus Chest.

Follow these steps:

  1. Again open the Avast as shown above.
  2. Now go to settings by clicking on the menu icon located in the top right windows of Avast.
  3. Then go to the General section displayed on the left.
  4. Select the Exceptions option from the left in the general section.
  5. Click on the “Add exception” option. Then browse the discord installation folder.
  6. Select “Exception.”Add exception Option in Avast Antivirus
  7. Now, launch the Discord installer to install the Discord.

#3. Solution For Windows 7 Users

This solution is especially for the Windows 7 users who struggle to install and then run Discord on their computer.

However, few users have tried and tested a few tweaks that can fix this problem in no time. The solution is quite simple, keep reading to know how you can fix Discord javascript error for Windows 7.

  1. Firstly, click on the Start Menu in your Windows 7. Then locate the “Computer” in the left menu, right-click on the “computer,” and select manage from the drop-down menu. Allow the administrative permissions to proceed.
  2. Now go to the Server Manager and then features. Click the option “add features” located on the right side.
  3. Once the add feature wizard opens, locate the “Quality Windows Audio Video Experience” option. Check the given box and then click on Next to move forward.
  4. Now, confirm the installation and ensure that you have selected an option named QWAVE when confirming.
  5. Click the “Install” button and wait until the installation completes. Once the installation finishes, restart your computer. In this way, you’ll be saving the changes made to your PC.

#4. Perform The Clean Reinstall

If you are not running Windows Server and also there are no issues related to the Antivirus, this method is the one for you! This method has successfully worked for many users, so give it a try.

The solution might be intuitive. However, each and every step of this solution is important. To reinstall the Discord properly, follow these steps:

  1. Firstly, make sure that you have logged in to your PC as an administrator. This is necessary because only an administrator can delete the program files.
  2. Now, search for the control panel from the Start menu. In windows 10, you can go to the control panel by clicking on the gear icon.
  3. Once the control panel, view the options according to categories from the top right corner. Then locate “Uninstall a program” under the Programs section in the control panel.Windows 10 Control Panel Dashboard
  4. Alternatively, if you are using the Settings app on the windows, click on the “Apps” option. This will open the list of all the installed programs on your PC.Windows 10 Settings Dashboard
  5. Now locate the Discord app in the settings app or control panel.
  6. Now click uninstall, this will open the uninstallation wizard for the Discord. The Window will prompt you, to select “completely remove Discord on your computer.” Click yes to proceed with the uninstallation.Discord in Control Panel
  7. Click Finish when the uninstallation completes and closes the Window.

So you think uninstalling the Discord removes all the files? Uh-uh, No! There are several related folders that need to be removed that are actually the problem in Discord Javascript Error. It is an essential step to reinstall the Discord properly.

To delete such files, follow the steps given below:

  1. Open the Run dialog box, either by searching it on the search bar or by clicking the Windows + R keys simultaneously. This will open the run box.
  2. Once the dialog box opens, type %appdata% in the box and click “OK.”Appdata in Run Dialogue Box
  3. This will open a directory and locate the Discord folder in the given files. Right-click the Discord folder and select the delete option from the menu
  4. Now open the Run dialog box again as in step 1. Then type %localappdata% in the dialog box and click “OK.”
  5. Again, locate the Discord folder and delete that as well.
  6. Ensure that the Discord folders are completely deleted and there is no remaining folder.

Now that all the uninstallation and deletion of discord files are done, it is time to reinstall the Discord from scratch. Firstly, download the latest version of Discord setup from its official website.

Then, follow the on-screen installation steps and make sure you are following the steps carefully. Now, hopefully, the javascript error won’t appear again.

#5. Launch Discord Without Administrative Privileges/Rights

  1. Right Click the Discord application and select the “properties” option. You can find the application on your Desktop or pin it to your taskbar. If you can’t find it, simply search in the search bar.
  2. Once the Window opens, go to the shortcut tab and then select the “Advanced..” button.Discord Properties Advanced Button
  3. Uncheck the option Run as administrator and then click OK to save changes.Discord Advanced Properties
  4. Then again, go to the compatibility tab and uncheck the option “run as administrator” there as well. Apply changes by clicking OK.

Now, this will start the Discord as non-admin every time you launch the Discord. This might solve your problem, however, if it doesn’t give the administrative privileges again and then relaunch the Discord.

My Final Verdict:

This marks the end of our discussion on How to fix the Discord javascript error. Above are the few most commonly approached to resolve the Javascript issue while installing the Discord.

These methods are not just Javascript error centric. Even if you have some other Discord issue, try the fixes above, and 9/10 times these will make the issue go away.

The JavaScript error occurred in the main process appears when your try to launch Discord on your computer. The error message window usually contains various information regarding the error but it can hardly be interpreted by casual users.

A JavaScript Error Occurred in the Main Process

There have been many different methods people used in order to resolve this problem. The methods are usually simple enough to perform easily without wasting too much time. Make sure you follow the instructions carefully and the problem should disappear in no time.

Solution 1: Delete Discord Folders

Deleting the Discord’s folders from AppData and LocalAppData folders should reset Discord settings and resolve the JavaScript error which is preventing you from opening Discord at all. These steps were originally suggested by the Discord website for an entirely different issue but users have reported that it should resolve this problem as well.

  1. Navigate to the following location using Windows Explorer
    C:\Users\YOURUSERNAME\AppData\Discord
  1. 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. Click on the “View” tab on File Explorer’s menu and click on the “Hidden items” checkbox in the Show/hide section. File Explorer will show the hidden files and will remember this option until you change it again.
    Viewing the hidden AppData folder
  1. Delete the Discord folder in the AppData folder. If you receive a message saying that some files couldn’t have been deleted because they were in use, try exiting Spotify and ending its process in Task Manager.
  2. Either click the Start button or the search button next to it and type “Run” or use the Windows Key + R key combination in order to bring up the Run dialog box. Type in “%localappdata%” and click Enter.
    Opening the LocalAppData folder
  1. Locate the Discord folder in the folder which opens, right-click on it, and choose the Delete
  2. Make sure that the folders are completely deleted and that there are no more remaining files in it. Check to see if the Discord error still appears after restarting your computer!

Solution 2: Change Startup Type of Service

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

  1. 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 open the Services tool.
    Running the Services tool
  1. Locate the Quality Windows Audio Video Experience service on the list, right-click on it and select Properties from the context menu which appears.
  2. 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.
    Setting the Quality Windows Audio Video Experience service’s startup type to Automatic
  1. Make 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 account specified for other services running in the same process."

If this happens, follow the instructions below to fix it.

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

  1. Under the “Enter the object name to select” entry box, type in your account’s name, click on Check Names and wait for the name to become available.
  2. Click OK when you are finished and 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 app actually works whenever they are not logged in using their administrator account. This leads us to believe 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 and various users have reported that running Discord without admin permissions actually resolved the problem for them!

  1. Locate the Discord executable and change its properties by right-clicking its entry either on the Desktop, the Start menu, or the Search results window and choose Properties. Navigate to the Compatibility tab in the Properties window and 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 checkbox
  1. Make sure you confirm any dialogs which may appear for you to confirm your changes and 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.

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 to reset your Discord installation and make it work properly again.

  1. First of all, make sure you are logged in with an administrator account as you won’t be able to delete programs using any other account.
  2. Click on the Start menu and open Control Panel by searching for it. Alternatively, you can click on the cog icon in order to open Settings if you are using Windows 10.
  3. In Control Panel, select to View as: Category at the top right corner and click on Uninstall a Program under the Programs section.
    Uninstall a program in Control Panel
  1. If you are using the Settings app, clicking on Apps should immediately open a list of all installed programs on your PC.
  2. Locate Discord in Control Panel or Settings and click on Uninstall.
  3. Discord’s uninstall wizard should open, prompting you up with a choice to “completely remove Discord on your computer”. Choose Yes.
  4. Click Finish when the uninstalling process finishes.

If you managed to uninstall the tool properly, it’s time to 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: Close all Discord Processes

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

  1. Press Windows + R, type “taskmgr” in the dialogue box, and press Enter.
    Running the Task Manager
  2. Once in the task manager, search for all Discord processes, click on it, and select End Process.
  3. 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 to get rid of them. Follow these steps:-

  1. Click on the Windows Search bar and type “Command Prompt”, right-click on it, and run as administrator.
  2. Type the following command and press enter:-
    taskkill /f /im discord.exe
  3. Now check to see if the issue still persists.

Solution 6: Use Discord PTB

Discord PTB is discord’s test 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 and it will not interact with your normal discord. You can download Discord PTB (here).

Photo of Kevin Arrows

Kevin Arrows

Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Понравилась статья? Поделить с друзьями:
  • Дискавери 3 ошибка пневмы
  • Дисковод при записи выдает ошибку
  • Дискавери 3 ошибка p2290
  • Дискавери 3 ошибка p0088
  • Дискавери 3 не заводится ошибок нет