Discord是一个很棒的社区平台,无论是玩你最喜欢的游戏、结交朋友、组织聚会,还是与志同道合的人分享想法。您可以在 Web 浏览器中使用Discord ,但如果您使用的是(Discord)Discord桌面应用程序,您可能偶尔会看到Discord致命的JavaScript错误。
弹出此错误的原因有很多,从损坏的Discord配置文件到过度活跃的防病毒软件阻止它加载。要修复Windows 10上的(Windows 10)Discord致命JavaScript错误,您需要执行以下操作。
是什么导致了不和谐的致命 JavaScript 错误?(What Causes a Discord Fatal JavaScript Error?)
当出现Discord致命JavaScript错误时,并不能立即看出是什么原因造成的。但是,在大多数情况下,它是由损坏的Discord安装或其他应用程序或服务(如您的防病毒软件)导致其无法正常运行。
对于大多数用户来说,修复或重新安装Discord应用程序将解决问题,但如果另一个第三方应用程序或服务导致问题,那么您需要更深入地挖掘并确保Discord可以正确加载和运行。
如果是这种情况,您需要使用以下步骤对Discord进行故障排除。(Discord)不要(Discord)忘记,如果您的 PC 或Mac上的(Mac)Discord(Don)应用程序无法运行,您仍然可以使用Discord网站或Discord移动应用程序来访问您的服务器。
删除并重新生成 Discord AppData 文件夹(Remove and Regenerate the Discord AppData Folder)
如果您使用的是Discord桌面应用程序,则该应用程序会将文件存储在您的 PC 上以使其正常运行。这包括配置设置、使用日志、缓存的缩略图和其他用于在您重新打开应用程序时快速加载的数据。
如果此数据已损坏,则Discord可能会停止工作。为了帮助重新生成Discord配置(并删除任何临时文件),您可以删除Discord的AppData文件夹。
- 为此,请打开Windows 文件资源管理器(Windows File Explorer)。使用顶部的导航栏,键入%appdata%并按Enter键。这会将您带到您的Windows用户帐户的AppData文件夹。
- 在AppData文件夹中,找到Discord文件夹。右键单击该文件夹,然后选择删除(Delete)选项。在执行此操作之前,您需要确保Discord没有运行(包括在(Discord)Windows 任务管理器(Windows Task Manager)中检查 discord.exe 进程)。
- 这会将Discord AppData文件夹放入您的回收站。在您的桌面上,右键单击回收站(Recycle Bin)图标并选择清空回收站(Empty Recycle Bin)选项以确保文件已从您的 PC 中完全删除。
删除Discord AppData(Discord AppData)文件夹后,Discord将自动重新生成一组新的配置文件,迫使您再次使用Discord用户帐户登录。这应该可以解决许多用户的问题,但如果没有,您需要尝试以下附加步骤之一。
删除并重新安装 Discord 桌面应用程序(Remove and Reinstall the Discord Desktop App)
当Discord遇到致命的JavaScript错误(或者实际上是任何其他类型的Discord错误)时,下一步是完全删除并重新安装它。这应该确保任何损坏的文件在Discord尝试运行时都不会干扰它。
- 要删除Discord,您需要前往Windows 设置(Windows Settings )菜单。右键单击(Right-click)开始(Start)菜单并选择设置(Settings)来执行此操作。
- 在Windows 设置(Windows Settings )菜单中,选择Apps > Apps & features。向下滚动,直到找到列出的Discord或使用搜索栏找到它。找到Discord后,在列表中选择它,然后选择Uninstall > Uninstall按钮。
- 允许Discord删除过程完成。完成后,前往Discord网站并为您的平台下载最新版本的桌面应用程序。
- 下载后,运行Discord安装程序并按照屏幕上的任何其他说明(如果需要)完成安装。
新的Discord安装将替换任何现有文件,但可能不会删除任何挥之不去的临时文件,例如损坏的AppData文件夹。如果您在重新安装Discord(Discord)后仍然遇到问题,请确保AppData文件夹已被删除,然后再次尝试重新安装过程。
以管理员身份运行 Discord(Run Discord as an Administrator)
如果Discord无法运行,则可能表明用户权限存在问题。虽然Discord应该在标准Windows用户帐户上运行,但在启用管理员权限的情况下尝试运行Discord不会损害您的 PC。(Discord)
- 为此,请打开Windows 文件资源管理器(Windows File Explorer)并使用导航栏打开C:\Users\username\AppData\Local\Discord 文件夹,将用户名(username)替换为您的用户配置文件文件 夹。
- 在Discord文件夹中,您可能会看到各种编号的文件夹(例如,app-0.0.3.308)。这些文件夹编号指的是Discord桌面应用程序的可用版本。打开编号最大的文件夹(或最新的日期修改(Date Modified )日期)。
- 在您选择的文件夹中,右键单击Discord.exe并选择“属性(Properties)”选项。
- 在“属性(Properties )”窗口的“兼容性(Compatibility)”选项卡中,选择“以管理员身份运行此程序”(Run this program as an administrator )选项,然后选择“确定(OK)”按钮保存。
- 启用 Discord 的管理权限后,在Windows 文件资源管理器(Windows File Explorer)中双击Discord.exe以运行它。您可能需要通过按是(Yes)选项接受用户访问控制弹出窗口(User Access Control pop-up)以允许Discord运行。(Discord)如果您当前使用的是标准用户配置文件,您可能还需要提供Windows管理员帐户的用户名和密码。(Windows)
如果另一个应用程序或服务阻止Discord正常运行,那么以管理权限运行它应该有助于解决问题。但是,如果您安装了可能会阻止Discord在敏感用户文件夹(例如您的AppData文件夹)中运行的防病毒软件,则例外情况。
检查您的防病毒软件是否阻止了 Discord(Check Your Antivirus Isn’t Blocking Discord)
与典型应用程序不同,Discord桌面应用程序从AppData文件夹本身运行。每个Discord版本都被视为临时版本,首先运行更新文件 ( update.exe ) 以确保自动安装最新版本的Discord 。
但是,作为受保护的系统文件夹,当您的 PC 上安装了第三方防病毒软件时, (third-party antivirus)AppData文件夹可能会对其施加额外的限制。虽然很少见,但防病毒保护有时会阻止新安装的Discord正常运行。
由于第三方防病毒软件的设置可能会有所不同,因此您需要直接仔细检查您的防病毒设置以确保不是这种情况。如果您的防病毒软件阻止了Discord,请务必将其添加到“允许”列表中,以确保Discord可以不受干扰地运行。
在 Windows 10 上使用不和谐(Using Discord on Windows 10)
一旦您修复了PC 上的Discord致命JavaScript错误,您就可以开始利用其功能。您可以先创建自己的 Discord 服务器(creating your own Discord server)来构建自己的社区,然后使用Discord 机器人(Discord bots)扩展它以添加游戏(games)、审核功能(moderation features)和音乐功能(music capabilities)。
当然,前提是您已成功连接到 Discord(connected to Discord)。如果您的Discord服务器仍然存在问题,您可能更愿意使用诸如Teamspeak或Slack之类的(Slack)Discord 替代方案(Discord alternative),具体取决于您的用例。
How to Fix a Discord Fatal Javascript Error
Discord iѕ a great platform for commυnities, whether it’s tо play your favorite gamеs, make friends, organize meetups, and to share ideas wіth like-mindеd indіviduals. You can use Discord in your web browser, but if you’re using the Discord desktoр app, you may oсcasionally see a Discord fatal JavaScript error.
There are a number of reasons why this error can pop up, from corrupted Discord configuration files to overactive antivirus software blocking it from loading. To fix a Discord fatal JavaScript error on Windows 10, here’s what you’ll need to do.
What Causes a Discord Fatal JavaScript Error?
When a Discord fatal JavaScript error appears, it isn’t immediately obvious what has caused it. However, in most cases, it’s caused by a corrupted Discord installation or another app or service (like your antivirus software) that prevents it from running correctly.
For most users, repairing or reinstalling the Discord app will fix the problem, but if another third-party app or service is causing an issue, then you’ll need to dig deeper and make sure that Discord can load and run correctly.
If that’s the case, you’ll need to troubleshoot Discord using the steps below. Don’t forget that if the Discord app on your PC or Mac isn’t working, you can still use the Discord website or Discord mobile app to access your servers instead.
Remove and Regenerate the Discord AppData Folder
If you’re using the Discord desktop app, then the app will store files on your PC to allow it to run correctly. This includes configuration settings, usage logs, cached thumbnails, and other data that it uses to quickly load when you reopen the app.
If this data is corrupted, then Discord may stop working. To help regenerate your Discord configuration (and remove any temporary files), you can delete Discord’s AppData folder.
- To do this, open Windows File Explorer. Using the navigation bar at the top, type %appdata% and press the Enter key. This will take you to the AppData folder for your Windows user account.
- In the AppData folder, locate the Discord folder. Right-click the folder, then select the Delete option. You’ll need to make sure that Discord isn’t running (including checking for the discord.exe process in Windows Task Manager) before you do this.
- This will place the Discord AppData folder in your recycle bin. On your desktop, right-click the Recycle Bin icon and select the Empty Recycle Bin option to ensure the files are fully removed from your PC.
Once the Discord AppData folder has been removed, Discord will automatically regenerate a new set of configuration files, forcing you to sign in with your Discord user account again. This should resolve the issue for many users but, if it doesn’t, you’ll need to try one of the additional steps below.
Remove and Reinstall the Discord Desktop App
When Discord has an issue with a fatal JavaScript error (or, indeed, any other kind of Discord error), the next step is to fully remove and reinstall it. This should ensure that any corrupted files aren’t interfering with Discord as it attempts to run.
- To remove Discord, you’ll need to head to the Windows Settings menu. Right-click the Start menu and select Settings to do this.
- In the Windows Settings menu, select Apps > Apps & features. Scroll down until you find Discord listed or use the search bar to find it. Once you find Discord, select it in the list, then select the Uninstall > Uninstall buttons.
- Allow the Discord removal process to complete. Once it has, head to the Discord website and download the latest version of the desktop app for your platform.
- Once downloaded, run the Discord installer and follow any additional on-screen instructions (if required) to complete the installation.
A new Discord installation will replace any existing files, but it may not remove any lingering temporary files, such as a corrupt AppData folder. If you’re still having trouble after reinstalling Discord, make sure that the AppData folder has been removed before trying the reinstallation process again.
Run Discord as an Administrator
If Discord fails to run, it could point to a problem with user privileges. While Discord should run on standard Windows user accounts, it won’t harm your PC to try to run Discord with administrator privileges enabled.
- To do this, open Windows File Explorer and use the navigation bar to open the C:\Users\username\AppData\Local\Discord folder, replacing username with your user profile folder.
- In the Discord folder, you may see various numbered folders (for instance, app-0.0.3.308). These folder numbers refer to available versions of the Discord desktop app. Open the folder with the highest number (or the latest Date Modified date).
- In the folder you selected, right-click Discord.exe and select the Properties option.
- In the Compatibility tab of the Properties window, select the Run this program as an administrator option, then select the OK button to save.
- Once you’ve enabled Discord’s administrative privileges, double-click Discord.exe in Windows File Explorer to run it. You may need to accept the User Access Control pop-up to allow Discord to run by pressing the Yes option. You may also need to provide the username and password for a Windows administrator account if you’re currently using a standard user profile.
If another app or service is preventing Discord from running properly, then running it with administrative privileges should help to fix the problem. The exception to this, however, is if you have an antivirus installed that might stop Discord from running in a sensitive user folder (such as your AppData folder).
Check Your Antivirus Isn’t Blocking Discord
Unlike typical applications, the Discord desktop app runs from within the AppData folder itself. Each version of Discord is treated as temporary, with an update file (update.exe) running first to ensure that the latest version of Discord is installed automatically.
As a protected system folder, however, the AppData folder may have additional restrictions placed on it when a third-party antivirus is installed on your PC. While rare, antivirus protection can sometimes block a new installation of Discord from running correctly.
Because the settings for third-party antivirus software can vary, you’ll need to double-check your antivirus settings directly to ensure this isn’t the case. If your antivirus software is blocking Discord, then be sure to add it to the “allowed” list to ensure that Discord can run without interference.
Using Discord on Windows 10
Once you’ve fixed a Discord fatal JavaScript error on your PC, you can begin to take advantage of its features. You can start by creating your own Discord server to build your own community, expanding it with Discord bots to add games, moderation features, and music capabilities.
That is, of course, as long as you’ve connected to Discord successfully. If you’re still having trouble with your Discord server, you may prefer to use a Discord alternative like Teamspeak or Slack instead, depending on your use case.