Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] BetterDiscord incompatible with latest Stable on Mac #600

Closed
Delta-official opened this issue Mar 24, 2021 · 32 comments
Closed

[Bug] BetterDiscord incompatible with latest Stable on Mac #600

Delta-official opened this issue Mar 24, 2021 · 32 comments
Labels

Comments

@Delta-official
Copy link

Describe the Bug
After updating to the latest Discord version, BetterDiscord refuses to work and its installer. Installer doesn't allow to re-install BD since it displays an error that shows Failed to install to : ReferenceError: cannot access 'fs' before initialization. Even after reinstalling the installer the bug is still present.

To Reproduce

  1. Download latest discord version on any MacOS version
  2. Download BandagedBD
  3. Press "Install BandagedBD"
  4. Click install
  5. Errors are shown

Expected Behavior
BBD installs BD and on Discord startup BD launches

Screenshots

Discord Version
Stable, latest

Additional Context
Problem only occurs on MacOS (Any versions)

@uhhhhh123
Copy link

I got the same problem & I can’t fix it

@rauenzi rauenzi changed the title [Bug] [Bug] BetterDiscord incompatible with latest Stable on Mac Mar 24, 2021
@EmreTech
Copy link

I'm pretty sure I also had this error, but it somehow fixed itself.

@Shotobai
Copy link

I am pretty sure is because you dont have discord.app but idk

@rauenzi
Copy link
Member

rauenzi commented Mar 24, 2021

Instead of adding a new comment, please react 👍 to the original issue if you have the same issue.

@Kinue72
Copy link

Kinue72 commented Mar 25, 2021

image

[25849:0325/103402.306936:INFO:CONSOLE(115)] "Unable to load preload script: /Applications/Discord.app/Contents/Resources/app/betterdiscord/preload.js", source: electron/js2c/renderer_init.js (115) [25849:0325/103402.307075:INFO:CONSOLE(115)] "TypeError: Cannot read property 'app' of undefined", source: electron/js2c/renderer_init.js (115)

@RenLeaf544
Copy link

RenLeaf544 commented Mar 25, 2021

basically, we all have the same problem
owner of betterdiscord pls fix this fast

@Kinue72
Copy link

Kinue72 commented Mar 25, 2021

I think its electron problem. See more in #442

@br0kenpixel
Copy link

I just updated Discord and somehow BetterDiscord was "uninstalled". I'm getting the same error too. Manual installation doesn't work either. Maybe Discord changed how the app loads up. Or as @Kinue72 mentioned, it's probably related to electron.

@JungleTECH1
Copy link

When I try to install it manually, it puts my discord into the web browser version running on the app. I know this because I can't zoom, and I can't set custom keybinds

@scarscar1
Copy link

has this been fixed yet ? because my better discord is still bugging since the update.

@rauenzi
Copy link
Member

rauenzi commented Mar 25, 2021

Please see my earlier comment.

@Franxineeeh
Copy link

i'm also having the same problem whenever i click install it does nothing

@Nova767
Copy link

Nova767 commented Mar 25, 2021

Yeah, same here. I didn't know how to fix it so I thought I'd wait a day until it is. I won't put the creator under pressure though because he's probably trying to fix it as we speak.

@ginodorantes
Copy link

Won't install.

@SwiftWinds
Copy link

SwiftWinds commented Mar 26, 2021

Current workaround for macOS is to:
1. close discord
2.download this file: https://cdn.discordapp.com/attachments/410788958277074944/821690118468272168/patch.zip and extract it.
3.You should get an app folder; paste that app folder in /Applications/Discord.app/Contents/Resources.
4.restart discord
5.you may need to go to settings to reenable the themes/plugins
Credits: @lukasbableck of the BetterDiscord2 server

EDIT: don't do this. Instead, download the latest beta installer from here: https://github.com/BetterDiscord/Installer/releases/tag/v1.0.0-beta

@chris-larsen
Copy link

Current workaround for macOS is to:

  1. close discord
  2. download this file: https://cdn.discordapp.com/attachments/410788958277074944/821690118468272168/patch.zip and extract it.
  3. You should get an app folder; paste that app folder in /Applications/Discord.app/Contents/Resources.
  4. restart discord
  5. you may need to go to settings to reenable the themes/plugins

Credits: @lukasbableck of the BetterDiscord2 server

Thanks for this. Custom CSS causes my Discord to just reload, but this is still 90% of the way to happy again so I'll take it. Cheers!

@ProofHF
Copy link

ProofHF commented Mar 28, 2021

Current workaround for macOS is to:

  1. close discord
  2. download this file: https://cdn.discordapp.com/attachments/410788958277074944/821690118468272168/patch.zip and extract it.
  3. You should get an app folder; paste that app folder in /Applications/Discord.app/Contents/Resources.
  4. restart discord
  5. you may need to go to settings to reenable the themes/plugins

Credits: @lukasbableck of the BetterDiscord2 server

Have tried this, unfortunately yielded the same issue. No BetterDiscord section in settings.

Going to drop this here since I posted it in a duplicate issue:

Same issue, tried the manual injector as well-- can get discord to launch, but the BetterDiscord settings section is missing under settings. For some reason adding the app folder into resources on Mac causes you to lose further ability to close the app without a force quit.

Hopefully this will get resolved soon.

EDIT 3/29-
#600 (comment)

Working for the most part now.

@Xenthio
Copy link

Xenthio commented Mar 29, 2021

Current workaround for macOS is to:

  1. close discord
  2. download this file: https://cdn.discordapp.com/attachments/410788958277074944/821690118468272168/patch.zip and extract it.
  3. You should get an app folder; paste that app folder in /Applications/Discord.app/Contents/Resources.
  4. restart discord
  5. you may need to go to settings to reenable the themes/plugins

Credits: @lukasbableck of the BetterDiscord2 server

Have tried this, unfortunately yielded the same issue. No BetterDiscord section in settings.

Going to drop this here since I posted it in a duplicate issue:

Same issue, tried the manual injector as well-- can get discord to launch, but the BetterDiscord settings section is missing under settings. For some reason adding the app folder into resources on Mac causes you to lose further ability to close the app without a force quit.

Hopefully this will get resolved soon.

i was about to say this didn't work for me either but it just takes a really long time for it to load

@orblazer
Copy link

Thanks a lot for your fix @SwiftWinds !

Tips for linux user : this need extracted at ~/.local/share/betterdiscordctl/bd/0

@ghost
Copy link

ghost commented Mar 29, 2021

From what I can tell on the OSX version, the app folder no longer exists at all. I've tried to use the injector, even so far as renaming the app.asar that comes with Discord (to old-app.asar) and then renaming the app.asar in the injector's index.js file to old-app.asar in order to attempt to force bd to load first.

This is what the original app.asar's contents look like. I haven't messed with betterbd installation manually enough to know exactly how it should work, so I don't know how to fix it. I just believe that betterbd is being cleared out by Discord on load and I may have to find my backup modified Discord app in the meantime while waiting for the fix.

Screen Shot 2021-03-29 at 8 29 25 AM

Edit: For those interested in opening the asar, I installed:

brew install node
npm install --engine-strict -g asar

# As package doesn't seem to work, use p instead
# asar p app app.asar  # To package betterbd as an asar (not going to make betterbd work)
# asar e old-app.asar app  # To extract the renamed version of Discord's asar

Edit 2: I can confirm that #600 (comment) does in fact fix the issue, but do not switch to beta or you'll have to recopy the app folder.

@Gizmoeve
Copy link

I just updated Discord and somehow BetterDiscord was "uninstalled". I'm getting the same error too. Manual installation doesn't work either. Maybe Discord changed how the app loads up. Or as @Kinue72 mentioned, it's probably related to electron.

Thats exactly what happened to me. The better discord app was removed and now I'm having same errors above

@SwiftWinds
Copy link

I just updated Discord and somehow BetterDiscord was "uninstalled". I'm getting the same error too. Manual installation doesn't work either. Maybe Discord changed how the app loads up. Or as @Kinue72 mentioned, it's probably related to electron.

Thats exactly what happened to me. The better discord app was removed and now I'm having same errors above

Did you try #600 (comment)?

@Gizmoeve
Copy link

I just updated Discord and somehow BetterDiscord was "uninstalled". I'm getting the same error too. Manual installation doesn't work either. Maybe Discord changed how the app loads up. Or as @Kinue72 mentioned, it's probably related to electron.

Thats exactly what happened to me. The better discord app was removed and now I'm having same errors above

Did you try #600 (comment)?

I did with manually injecting and still didn't work

@SwiftWinds
Copy link

Hmm... Idk then, it works for me. Maybe ask in #support in the official BetterDiscord discord server.

@Gizmoeve
Copy link

Hmm... Idk then, it works for me. Maybe ask in #support in the official BetterDiscord discord server.

already did ty for your help

@X5Panther
Copy link

Current workaround for macOS is to:

  1. close discord
  2. download this file: https://cdn.discordapp.com/attachments/410788958277074944/821690118468272168/patch.zip and extract it.
  3. You should get an app folder; paste that app folder in /Applications/Discord.app/Contents/Resources.
  4. restart discord
  5. you may need to go to settings to reenable the themes/plugins

Credits: @lukasbableck of the BetterDiscord2 server

THATS WHAT I DID :))) I KNEW SOMONE WOULD FIND IT I USED XCODE :DDDDDDD

@X5Panther
Copy link

IM SO HAPPY

@X5Panther
Copy link

:DDDDD

@shiypc
Copy link

shiypc commented Mar 31, 2021

Current workaround for macOS is to:

  1. close discord
  2. download this file: https://cdn.discordapp.com/attachments/410788958277074944/821690118468272168/patch.zip and extract it.
  3. You should get an app folder; paste that app folder in /Applications/Discord.app/Contents/Resources.
  4. restart discord
  5. you may need to go to settings to reenable the themes/plugins

Credits: @lukasbableck of the BetterDiscord2 server

not doing anything at all on catalina 10.15.7

@Nicotra-Jack
Copy link

Nicotra-Jack commented Mar 31, 2021

La soluzione attuale per macOS è:

  1. chiudere la discordia
  2. scarica questo file: https://cdn.discordapp.com/attachments/410788958277074944/821690118468272168/patch.zip ed estrailo.
  3. Dovresti ottenere una cartella dell'app; incolla quella cartella dell'app in /Applications/Discord.app/Contents/Resources.
  4. riavviare discord
  5. potrebbe essere necessario accedere alle impostazioni per riattivare i temi / plug-in

Crediti: @lukasbableck del server BetterDiscord2

Where is /Applications/Discord.app/Contents/Resources ?

@Nicotra-Jack
Copy link

Dove lo cerco il comando /Applications/Discord.app/Contents/Resources ?

@Tropix126
Copy link
Member

@rauenzi rauenzi closed this as completed Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests