TypeError: WeakMap key undefined (caused by extension DarkReader's bug) #12357

Closed
opened 2025-11-02 10:06:55 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @yottapanda on GitHub (Jan 19, 2024).

Description

JavaScript error: TypeError: WeakMap key undefined must be an object or an unregistered symbol (https://try.gitea.io/ @ 529:36). Open browser console to see more details.
worker port event error 
Object { type: "error", data: undefined }
index.js:30:76443
    Tg https://try.gitea.io/assets/js/index.js?v=1.21.4:30

This does not occur in a private window, I have tried to clear cookies and site data, no change.

Screenshots

Screenshot_20240119_200337

Gitea Version

1.22.0+dev-575-gd68a613ba

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

Firefox

Browser Version

121.0

Originally created by @yottapanda on GitHub (Jan 19, 2024). ### Description ``` JavaScript error: TypeError: WeakMap key undefined must be an object or an unregistered symbol (https://try.gitea.io/ @ 529:36). Open browser console to see more details. ``` ``` worker port event error Object { type: "error", data: undefined } index.js:30:76443 Tg https://try.gitea.io/assets/js/index.js?v=1.21.4:30 ``` This does not occur in a private window, I have tried to clear cookies and site data, no change. ### Screenshots ![Screenshot_20240119_200337](https://github.com/go-gitea/gitea/assets/33595996/0c1edc35-f764-40cb-9dda-02f6b6475105) ### Gitea Version 1.22.0+dev-575-gd68a613ba ### Can you reproduce the bug on the Gitea demo site? Yes ### Operating System Firefox ### Browser Version 121.0
GiteaMirror added the topic/uitype/bug labels 2025-11-02 10:06:55 -06:00
Author
Owner

@techknowlogick commented on GitHub (Jan 19, 2024):

You wouldn't happen to be using the "dark reader" extension?

@techknowlogick commented on GitHub (Jan 19, 2024): You wouldn't happen to be using the "dark reader" extension?
Author
Owner

@techknowlogick commented on GitHub (Jan 19, 2024):

possibly related: https://github.com/go-gitea/gitea/issues/28226

@techknowlogick commented on GitHub (Jan 19, 2024): possibly related: https://github.com/go-gitea/gitea/issues/28226
Author
Owner

@puc9 commented on GitHub (Jan 20, 2024):

You wouldn't happen to be using the "dark reader" extension?

Disabling the dark reader extension for gitea fixed it for me

@puc9 commented on GitHub (Jan 20, 2024): > You wouldn't happen to be using the "dark reader" extension? Disabling the dark reader extension for gitea fixed it for me
Author
Owner

@yottapanda commented on GitHub (Jan 20, 2024):

Goddammit darkreader

@yottapanda commented on GitHub (Jan 20, 2024): Goddammit darkreader
Author
Owner

@SirCypher commented on GitHub (Jan 20, 2024):

This happens only in Firefox since the last DarkReader update.
I opened an issue at https://github.com/darkreader/darkreader/issues/12180

@SirCypher commented on GitHub (Jan 20, 2024): This happens only in Firefox since the last DarkReader update. I opened an issue at https://github.com/darkreader/darkreader/issues/12180
Author
Owner

@wxiaoguang commented on GitHub (Jan 21, 2024):

On Gitea side, we could do this: Avoid duplicate JS error messages on UI #28873

@wxiaoguang commented on GitHub (Jan 21, 2024): On Gitea side, we could do this: Avoid duplicate JS error messages on UI #28873
Author
Owner

@staticfrost commented on GitHub (Jan 23, 2024):

had this happening to me too. thanks for fixing it!

@staticfrost commented on GitHub (Jan 23, 2024): had this happening to me too. thanks for fixing it!
Author
Owner

@github-actions[bot] commented on GitHub (Feb 29, 2024):

Automatically locked because of our CONTRIBUTING guidelines

@github-actions[bot] commented on GitHub (Feb 29, 2024): Automatically locked because of our [CONTRIBUTING guidelines](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#issue-locking)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12357