How to Fix A Fatal Javascript Error Occurred on Discord
Discord can't modify its files from the app data folder
3 min. read
Updated on
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
Some users encountered A fatal javascript error occurred on Discord right after a Windows update. In this case, the files from the Discord app data folder were set as Read-only, causing this error. Here’s how to quickly fix it.
How do I fix Discord’s A fatal Javascript error occurred?
1. Check the Discord user folder
- Press Windows + R, type %appdata% and press Enter.
- Right click the Discord folder and select Properties.
- Look at the Attributes below and uncheck the Read-only box if it’s checked, then hit Apply and OK to save the change.
- Try to open Discord again and see if the error persists.
- If so, delete the Discord folder, restart your computer and try again.
For some reason, after a Windows update, the Discord folder is set to Read-only. When you open Discord, it cannot change the files in App data, thus causing the fatal Javascript error. By removing this attribute, the issue should be fixed. It’s also OK to delete the folder since Discord will create a new one when it starts.
2. Run Discord as an administrator
- Click the Start button, type discord, right click the file and select Run as administrator.
- If that works, you can make the change permanent by right-clicking the Discord shortcut and selecting Properties, then checking the Run as administrator option from the Advanced Properties window.
If you’re not logged into an administrator account on your computer, A fatal Javascript error occurred may occur. Making sure that you’re launching the app as an administrator will clear out that issue.
Other potential fixes for A fatal Javascript error occurred
The solutions above fixed the problem for the majority of user who encountered this error on Windows 10 and 11. However, there are a few more things you can try:
- Uninstall the BetterDiscord app: If you installed BetterDiscord, this may cause a conflict triggering the Javascript error in Discord. You can only uninstall this app by actually running its installer and selecting the Uninstall option in the process.
- Temporarily disable the antivirus: Some antiviruses may block the Discord app data folder thus causing this error. Disable the antivirus and try running Discord again. If that’s the issue, maybe it’s time to switch to a better antivirus solution.
- Reinstall Discord: Of course, as a last resort, you may also try uninstalling Discord and reinstall the app freshly from the official download page.
Some users are also dealing with high ping in Discord, but the highlighted link will bring you to our guide on how to fix this issue. We also have a helpful guide to fix Discord if it fails to install.
Here we conclude our guide and we hope that our solutions above helped you fi A fatal Javascript error occurred on Discord.
For any questions or tested solutions we didn’t cover, let us know about them in the comments below.
User forum
0 messages