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

Javascript error when viewing a repo #32797

Closed
rubenelshof opened this issue Dec 11, 2024 · 4 comments · Fixed by #32798
Closed

Javascript error when viewing a repo #32797

rubenelshof opened this issue Dec 11, 2024 · 4 comments · Fixed by #32798
Labels

Comments

@rubenelshof
Copy link

Description

Upon viewing a repository I get the following Javascript error:

JavaScript error: Cannot read properties of null (reading 'addEventListener') (https://git.example.com/assets/js/index.js?v=1.23.0~dev-792-g39a01016cd @ 111:29734). Open browser console to see more details.

Console error:

repo-common.ts:79 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
    at uh (repo-common.ts:79:10)
    at Tv (repo-common.ts:95:3)
    at He (dom.ts:65:7)
    at ue (dom.ts:91:10)
    at Lv (repo-common.ts:106:3)
    at Ty (repo-legacy.ts:82:3)
    at y1 (index.ts:113:7)
    at HTMLDocument.<anonymous> (index.ts:123:3)

Gitea Version

1.23.0+dev-792-g39a01016cd

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

gitea error

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker

Database

None

@lunny
Copy link
Member

lunny commented Dec 11, 2024

Maybe caused by #31142

@rubenelshof
Copy link
Author

Maybe caused by #31142

It could be.
When I click the 'Code' button it doesn't give me the dropdown menu as shown in the screenshots of that PR.

@wxiaoguang
Copy link
Contributor

Will fix it

@wxiaoguang
Copy link
Contributor

-> Fix clone panel js error #32798

wxiaoguang added a commit that referenced this issue Dec 12, 2024
side effect of jquery removal, fix #32797
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants