[GH-ISSUE #125] its broken #93

Closed
opened 2026-10-30 21:18:58 +00:00 by bsakaguchi · 11 comments
Owner

Originally created by @IkariDevGIT on GitHub (Feb 5, 2023).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/125

Uncaught (in promise) ReferenceError: getTextAreas is not defined
setup http://127.0.0.1:7861/file=D:/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete/javascript/tagAutocomplete.js?1675622356.8616462:1201

problem:

// Find all textareas
let textAreas = getTextAreas();
Originally created by @IkariDevGIT on GitHub (Feb 5, 2023). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/125 Uncaught (in promise) ReferenceError: getTextAreas is not defined setup http://127.0.0.1:7861/file=D:/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete/javascript/tagAutocomplete.js?1675622356.8616462:1201 problem: // Find all textareas let textAreas = getTextAreas();
Author
Owner

@DominikDoom commented on GitHub (Feb 5, 2023):

Definitely working for me, I also did not change anything regarding that function since December 18th when I first added it.
In the autocomplete extension's javascript folder, do you have the _textAreas.js file? That holds the relevant function.

<!-- gh-comment-id:1418231633 --> @DominikDoom commented on GitHub (Feb 5, 2023): Definitely working for me, I also did not change anything regarding that function since December 18th when I first added it. In the autocomplete extension's javascript folder, do you have the _textAreas.js file? That holds the relevant function.
Author
Owner

@IkariDevGIT commented on GitHub (Feb 5, 2023):

@DominikDoom yes

<!-- gh-comment-id:1418234709 --> @IkariDevGIT commented on GitHub (Feb 5, 2023): @DominikDoom yes
Author
Owner

@IkariDevGIT commented on GitHub (Feb 5, 2023):

@DominikDoom ok, got it to work by removing the _textAreas.js file and moving everything over into the main js file. i use firefox, so maybe that's a problem

<!-- gh-comment-id:1418236044 --> @IkariDevGIT commented on GitHub (Feb 5, 2023): @DominikDoom ok, got it to work by removing the _textAreas.js file and moving everything over into the main js file. i use firefox, so maybe that's a problem
Author
Owner

@DominikDoom commented on GitHub (Feb 5, 2023):

Shouldn't be. As I said, this setup hasn't changed since December 18th and is confirmed working for me in Chrome, Firefox, and Edge. Did it work for you before?

<!-- gh-comment-id:1418239227 --> @DominikDoom commented on GitHub (Feb 5, 2023): Shouldn't be. As I said, this setup hasn't changed since December 18th and is confirmed working for me in Chrome, Firefox, and Edge. Did it work for you before?
Author
Owner

@IkariDevGIT commented on GitHub (Feb 5, 2023):

yes, idk maybe its some extension

<!-- gh-comment-id:1418239533 --> @IkariDevGIT commented on GitHub (Feb 5, 2023): yes, idk maybe its some extension
Author
Owner

@DominikDoom commented on GitHub (Feb 5, 2023):

The javascript depends on the _textAreas file being evaluated by the browser before the main file, but that should be the case since the webui just appends the script in alphabetical order, so since the aforementioned starts with _, it should always come first.

Since it's javascript it should also not really be influenced by other extensions.
Still, if you can, it would be nice to try out the original setup with only autocomplete enabled to see if it's a conflict.

<!-- gh-comment-id:1418240434 --> @DominikDoom commented on GitHub (Feb 5, 2023): The javascript depends on the _textAreas file being evaluated by the browser before the main file, but that should be the case since the webui just appends the script in alphabetical order, so since the aforementioned starts with _, it should always come first. Since it's javascript it should also not really be influenced by other extensions. Still, if you can, it would be nice to try out the original setup with only autocomplete enabled to see if it's a conflict.
Author
Owner

@IkariDevGIT commented on GitHub (Feb 8, 2023):

idk, still getting this error:

Uncaught (in promise) ReferenceError: getTextAreas is not defined
setup http://127.0.0.1:7860/file=D:/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete/javascript/tagAutocomplete.js?1675874503.265476:1201

<!-- gh-comment-id:1422932915 --> @IkariDevGIT commented on GitHub (Feb 8, 2023): idk, still getting this error: Uncaught (in promise) ReferenceError: getTextAreas is not defined setup http://127.0.0.1:7860/file=D:/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete/javascript/tagAutocomplete.js?1675874503.265476:1201
Author
Owner

@IkariDevGIT commented on GitHub (Feb 8, 2023):

ok, seems that it works now. deleted my cookies, now it works

<!-- gh-comment-id:1422936791 --> @IkariDevGIT commented on GitHub (Feb 8, 2023): ok, seems that it works now. deleted my cookies, now it works
Author
Owner

@DominikDoom commented on GitHub (Feb 8, 2023):

It doesn't use cookies, but maybe a cache issue? Did you try force refreshing with CTRL+F5 before?

<!-- gh-comment-id:1422940175 --> @DominikDoom commented on GitHub (Feb 8, 2023): It doesn't use cookies, but maybe a cache issue? Did you try force refreshing with CTRL+F5 before?
Author
Owner

@IkariDevGIT commented on GitHub (Feb 8, 2023):

multiple times, like 5 times every time i started sd

<!-- gh-comment-id:1422984050 --> @IkariDevGIT commented on GitHub (Feb 8, 2023): multiple times, like 5 times every time i started sd
Author
Owner

@DominikDoom commented on GitHub (Feb 8, 2023):

Strange. Well, if it works now, I'm closing this. If it happens again I'll need more details though as I still haven't been able to reproduce it.

<!-- gh-comment-id:1423000420 --> @DominikDoom commented on GitHub (Feb 8, 2023): Strange. Well, if it works now, I'm closing this. If it happens again I'll need more details though as I still haven't been able to reproduce it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#93
No description provided.