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

Branch selector disappears immediately (isViewTag is not defined) #21354

Closed
TokisanGames opened this issue Oct 6, 2022 · 3 comments
Closed
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@TokisanGames
Copy link

TokisanGames commented Oct 6, 2022

Description

The branch selector appears upon loading, then immediately disappers, just like in #19851. However there are no CSP console errors, and adding in the CSP from that issue into nginx doesn't fix the problem.

There is a different console error. This error only appears on repository pages where the branch selector should be. Other pages do not have errors.

index.js?v=1.17.2:7 
        
       ReferenceError: isViewTag is not defined
    at Bi.eval (eval at $c (index.js?v=1.17.2:21:112), <anonymous>:3:767)
    at e._render (index.js?v=1.17.2:7:164415)
    at Bi.n (index.js?v=1.17.2:7:168502)
    at Kt.get (index.js?v=1.17.2:7:171407)
    at new Kt (index.js?v=1.17.2:7:171329)
    at ne (index.js?v=1.17.2:7:168516)
    at Bi.$mount (index.js?v=1.17.2:7:214183)
    at Bi.$mount (index.js?v=1.17.2:23:651)
    at Va.e._init (index.js?v=1.17.2:7:175292)
    at new Bi (index.js?v=1.17.2:7:175984)

It works on the demo site, but that uses v1.18.

Linux binary 1.17.2 running through an Nginx proxy available under https//domain/git.

Removing all templates doesn't fix the problem.

An incognito window doesn't help.

Screenshots

Mine:

image

Expected:

image

Gitea Version

1.17.2 Linux binary

Can you reproduce the bug on the Gitea demo site?

No

Operating System

Win11/64

Browser Version

Edge 105.0.1343.53

Database

Mysql

@TokisanGames TokisanGames added type/bug topic/ui Change the appearance of the Gitea UI labels Oct 6, 2022
@wxiaoguang
Copy link
Contributor

A lot of users are using Gitea 1.17.x, no other has such problem, it doesn't seem to be a Gitea's problem.

Since I know nothing about your environment, I couldn't provide more helps besides:

  • Remove all your customized templates
  • Check your CDN/reserse-proxy/cache to make sure all files are served correctly
  • Take a few minutes to setup a simple Gitea instance with default and visit 127.0.0.1:3000, it should work well. Then check what are the differences from your environment.

@wxiaoguang wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/bug topic/ui Change the appearance of the Gitea UI labels Oct 6, 2022
@wxiaoguang
Copy link
Contributor

Since it doesn't seem to be a Gitea bug, I will close this issue.

Feel free to re-open if you can reproduce it with a fresh setup and confirm it's a bug, or if you would propose some solutions for the edge cases or update the documents to help to future users to get rid of similar problems.

@TokisanGames
Copy link
Author

This problem was caused by static files from a previous release. Read more here: #21329 (comment)

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

2 participants