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

could not be constructed #78

Open
kuyajoseph opened this issue Feb 17, 2022 · 14 comments
Open

could not be constructed #78

kuyajoseph opened this issue Feb 17, 2022 · 14 comments
Labels
bug Something isn't working

Comments

@kuyajoseph
Copy link

It doesn't show up in my plugins list but is in my plugins folder. Every time I boot up BD, it says the plugin "could not be constructed", and whenever I try to click on the error log it crashes and prompts me to reload/restart BD.

@kuyajoseph kuyajoseph added the bug Something isn't working label Feb 17, 2022
@Snowad14
Copy link

same for me, the problem is new because I had no problem before

@IrcDirk
Copy link

IrcDirk commented Feb 17, 2022

same...

@ItsdMeSoFYou
Copy link

same here after update

@blobbyblo
Copy link

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

@bainchild
Copy link

bainchild commented Feb 18, 2022

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Might be a version of this, but I removed the @cc_on ... @ else part and it worked

@IrcDirk
Copy link

IrcDirk commented Feb 18, 2022

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Might be a version of this, but I removed the @cc_on ... @ else part and it worked

It worked for me too...

@kuyajoseph
Copy link
Author

Yep this worked for me! Glad there's an easy resolution.

@blobbyblo
Copy link

This only happens because modifying the file forces BD to reload it, and it works because it is reloaded while BD is initialized and hopefully the module AccountSwitcher depends on is cached at this time.

@parhammed
Copy link

same

@ghost
Copy link

ghost commented Feb 20, 2022

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Might be a version of this, but I removed the @cc_on ... @ else part and it worked

not working for me lol

you mind telling me exactly which lines of code you deleted?

@kintonc
Copy link

kintonc commented Feb 20, 2022

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Confirming that this fix work, thanks

@aarondoet
Copy link
Owner

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Might be a version of this, but I removed the @cc_on ... @ else part and it worked

if you have a working fix, please create a PR so that i can just merge it. dont want to bother with this at all rn.

@ezeholz
Copy link
Contributor

ezeholz commented Mar 2, 2022

This is not a full fix, and should not be treated like one. But I fix this error for those who had the plugin already configured. I heavily doubt this could be a final version, mostly because I believe it's gonna crash the minute you open the settings menu of the plugin. Feel free to use it until I try to fix this error. :D
https://github.com/ezeholz/AccountSwitcher/tree/hotfix-78

It's not worth it anymore, just wait until discord provides it

@blobbyblo
Copy link

blobbyblo commented Mar 2, 2022

@ezeholz, This just removes keybinds via KeyRecorder and is not a fix, it just breaks the plug-in. What needs to be changed is to force KeyRecorder to load or switch to key events.

I have an example of this in MultiAccounts plug-in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants