Juby210 / bdCompat

Compatibility layer for running BetterDiscord plugins in Powercord
118 stars 16 forks source link

bdCompat doesn't work on linux (discord-canary-electron-bin from AUR). #31

Open obj-obj opened 2 years ago

obj-obj commented 2 years ago

Relevant error:

An error occurred during initialization! TypeError: Cannot read properties of undefined (reading 'push')
    at BDCompat.defineGlobals (/home/rohanb/powercord/src/Powercord/plugins/bdCompat/index.js:30)
    at BDCompat.startPlugin (/home/rohanb/powercord/src/Powercord/plugins/bdCompat/index.js:12)
    at BDCompat._load (/home/rohanb/powercord/src/fake_node_modules/powercord/entities/Plugin.js:127)
    at PluginManager.load (/home/rohanb/powercord/src/Powercord/managers/plugins.js:107)
    at PluginManager.enable (/home/rohanb/powercord/src/Powercord/managers/plugins.js:133)
    at apply (/home/rohanb/powercord/src/Powercord/plugins/pc-moduleManager/components/manage/Plugins.jsx:47)
    at Proxy._toggle (/home/rohanb/powercord/src/Powercord/plugins/pc-moduleManager/components/manage/Plugins.jsx:52)
    at Function.wrapper (/home/rohanb/powercord/src/fake_node_modules/powercord/webpack/serialize.js:258)
    at <anonymous>
    at Proxy.obj (/home/rohanb/powercord/src/fake_node_modules/powercord/webpack/serialize.js:601)
obj-obj commented 2 years ago

some other powercord features don't work on discord-canary-electron-bin, so it may be a powercord issue as well

Juby210 commented 2 years ago

because you are using other electron version than discord should use :P

BrettPlays commented 2 years ago

So what's the fix?

Juby210 commented 2 years ago

Fix is using discord with electron 13, so you use same version as discord does

obj-obj commented 2 years ago

Fix is using discord with electron 13, so you use same version as discord does

but I am using electron 13

Although plugins seem to load now (I haven't tried the plugin in a while), but it crashes discord... It seems to be one of the betterdiscord plugins, I will find which one it is

obj-obj commented 2 years ago

ah yes it was the 6 month old plugin library

I really haven't enabled this plugin in a while lmao Well everything seems to be working now, I will close the issue

obj-obj commented 2 years ago

Nevermind, the plugins load, but don't do anything..?

Many errors related to a request module -

Uncaught (in promise) Error: Cannot find module 'request'
Require stack:
- /home/rohanb/.local/share/powercord/plugins/bdCompat/plugins/0PluginLibrary.plugin.js
- /home/rohanb/.local/share/powercord/plugins/bdCompat/modules/PluginManager.js
- /home/rohanb/.local/share/powercord/plugins/bdCompat/modules/index.js
- /home/rohanb/.local/share/powercord/plugins/bdCompat/index.js
- /usr/share/powercord/src/Powercord/managers/plugins.js
- /usr/share/powercord/src/Powercord/index.js
- /usr/share/powercord/src/preload.js
    at Module._resolveFilename (internal/modules/cjs/loader.js:887)
    at Function.o._resolveFilename (electron/js2c/renderer_init.js:33)
    at Module._load (internal/modules/cjs/loader.js:732)
    at Function.f._load (electron/js2c/asar_bundle.js:5)
    at Function.o._load (electron/js2c/renderer_init.js:33)
    at Module.require (internal/modules/cjs/loader.js:959)
    at require (internal/modules/cjs/helpers.js:88)
    at /home/rohanb/.local/share/powercord/plugins/bdCompat/plugins/0PluginLibrary.plugin.js:1911
    at new Promise (<anonymous>)
    at Function.processUpdateCheck (/home/rohanb/.local/share/powercord/plugins/bdCompat/plugins/0PluginLibrary.plugin.js:1910)

my electron version is in fact 13: Screenshot_20220216_141634