A JavaScript error occurred in the main process

Anonymous
2020-10-11T04:21:05+00:00

Please help; I have uninstalled Discord app but keep getting the following error when I switch on my computer:

A JavaScript error occurred in the main process

Uncaught Exception:

Error: Cannot find Module

'C:\Users\laisa\AppData\Local\Discord\app-0.0.307\resources\build_info.json'

Require Stack:

-

C:\Users\laisa\AppData\Local\Discord\app-0.0.307\resources\app.asar\app_bo...\buildInfo.js

-

C:\Users\laisa\AppData\Local\Discord\app-0.0.307\resources\app.asar\app_bootstrap\inde....

-

at Module._resolveFilename (internal/modules/cjs/loader/js:717:15)

at Function../lib/common/reset-search-paths.ts.Module._resolveFilename (electron/js2c/browser_init.js:7729:16)

at Module._load (internal/moduiles/cjs/loader.js:622:27)

at Module._load (electron/js2c/asar.js:717:26)

at Function.Module._load (electron/js2c/asar.js:717:26)

at Module.require (internal/modules/cjs/helpers.js:68:18)

at Object.<anonymous>

C:\Users\laisa\AppData\Local\Discord\app-0.0.307\resources\app.asar\app_bootstrap...:19)

at Module._compile (internal/modules/cjs/loader.js:880:30)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)

Microsoft Edge | Other | Windows 10

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. Anonymous
    2020-12-06T21:58:21+00:00

    Hi LAIO'BRIEN1

    I am Dave, an Independent Advisor, I will help you with this . . .

    There must be a startup item referring to Discord still in your Registry:

    Click the link below to download a small free utility that does not require installation

    https://docs.microsoft.com/en-us/sysinternals/d...

    When the file downloads, unzip it.

    Depending on your system, run Autoruns or Autoruns64 as Administrator

    In the search box of Autoruns, type discord and press Enter

    Right click and delete any entries found

    [Window Title]

    Error

    [Main Instruction]

    A JavaScript error occurred in the main process

    [Content]

    Uncaught Exception:

    SyntaxError: C:\Users\Piotrek\AppData\Local\Discord\app-0.0.308\resources\app\betterdiscord\config.json: Unexpected end of JSON input

        at JSON.parse (<anonymous>)

        at Object.Module._extensions..json (internal/modules/cjs/loader.js:906:27)

        at Module.load (internal/modules/cjs/loader.js:735:32)

        at Module._load (internal/modules/cjs/loader.js:648:12)

        at Module._load (electron/js2c/asar.js:717:26)

        at Function.Module._load (electron/js2c/asar.js:717:26)

        at Module.require (internal/modules/cjs/loader.js:775:19)

        at require (internal/modules/cjs/helpers.js:68:18)

        at Object.<anonymous> (C:\Users\Piotrek\AppData\Local\Discord\app-0.0.308\resources\app\betterdiscord\index.js:4:16)

        at Module._compile (internal/modules/cjs/loader.js:880:30)

    [OK] I am asking for help, I don't know what happened

    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more