Tricky bug: if a script is loading before cnet extension is loaded, importing external code API will fail #1396
Closed
OedoSoldier
started this conversation in
General
Replies: 1 comment 5 replies
-
I haven't taken a peek at how yet, but the adetailer extension has been able to work around this. https://github.com/Bing-su/adetailer |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with a script using cnet, and trying to import external code API following the wiki:
Then it gave me this:
I'm confused with this and trying to debug, and it turned out that my script was loading before the cnet extension was loaded; then I changed my script's name and made sure it loaded after the cnet extension was loaded (in A1111's WebUI, extensions are loaded alphabetically) and it works just fine.
Beta Was this translation helpful? Give feedback.
All reactions