A JavaScript error when launching the Discord Windows app is a desktop startup problem. Save the complete error dialog before closing it. A website asking you to run JavaScript or paste code into a console is a different situation and should not be treated as a repair instruction.
Begin by noting whether the failure happens at launch, during an update or only after opening a particular feature. Record the file or process named in the dialog, but remove your Windows username and other private path details before sharing screenshots publicly.
Close the failed app and try a clean launch
Save other work and exit Discord. Check Task Manager for a remaining Discord process, end that app’s process if necessary and reopen the official application. Restart Windows once if it still fails.
If the app now opens, complete its update before changing unrelated settings. Record whether the problem returns after another normal launch. A one-off successful start is useful information, but it does not establish that every underlying issue is resolved.
Prepare before clearing local data
Make sure you know how to sign back in and retain access to your email, authenticator or other recovery methods. Clearing local application data can remove cached state and local preferences. Save any local file or diagnostic material you need before proceeding.
Do not copy account tokens out of Discord files or send the application-data folders to a third party. You do not need to share your password with a person helping you reinstall an app.
Follow Discord’s documented reinstall approach
Discord’s Error Message Guide recommends removing its folders from both AppData and LocalAppData, then reinstalling. Keep the cleanup tightly scoped to Discord.
- Completely close Discord and confirm it is no longer running.
- Press Windows + R, enter
%appdata%and locate the Discord folder. - After preserving anything needed, remove that Discord folder only.
- Open Run again, enter
%LocalAppData%and remove the Discord folder there as well. - Download a fresh installer from Discord’s official download page, install it and test a normal launch.
Do not delete the AppData parent directories or other applications’ folders. If you cannot identify the correct folder confidently, stop rather than running a broad cleanup command copied from a comment thread.
If installation or disk space is the actual failure
A JavaScript startup dialog and an installer error should be recorded separately. If Windows says the drive is full, resolve that specific condition before repeating the installation. Our Windows 11 storage cleanup guide explains how to review space without indiscriminately deleting personal files.
On a managed PC, ask the administrator to check installation policy and any security-software detection. Do not disable antivirus protection permanently or install a repackaged Discord client to avoid a legitimate warning.
What if the JavaScript error comes back?
Contact Discord Support with the exact dialog, OS version, downloaded installer source and whether the failure survives the documented cleanup. Explain if the browser client works while desktop launch fails; that comparison can narrow the report without proving a specific cause.
Should I download a replacement DLL?
Do not fetch random DLLs or paid repair utilities as a general response to this message. Use the official installer and investigate the actual dialog. A Windows reset is a disproportionate first step for a single application startup failure.
Sources and support
Official documentation checked on 27 November 2026. Menu wording can differ between Discord versions and operating systems.
For more troubleshooting and app help, browse our Discord guides.