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

The home page repeat render twice #3207

Open
1 task done
brycenhe opened this issue Mar 28, 2024 · 2 comments
Open
1 task done

The home page repeat render twice #3207

brycenhe opened this issue Mar 28, 2024 · 2 comments

Comments

@brycenhe
Copy link

brycenhe commented Mar 28, 2024

  • I confirm that this is an issue rather than a question.

Bug report

Hi,I met a issue,but I don not know why and know if this is a bug or something.
My project works fine in local development mode, local packaging deployment, and online testing environment. But after being released in the production environment, the homepage is rendered twice, and you can also see the homepage when scrolling down on other pages. I tried deploying the production environment package locally, there is no problem.

project url:https://www.jaka.com/docs/

sorry for no source code support.

Does anyone have any ideas? Could it be a problem with the CDN cache? This project was previously upgraded from vuepress 1.x to vuepress 2.x.

Steps to reproduce

What is expected?

The home page should be rendered once.

What is actually happening?

Actually, it was rendered twice.

Other relevant information

Before, there were no issues with vuepress 1.x, but problems started occurring after upgrading to 2.x.

"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.9",
"@vuepress/theme-default": "2.0.0-rc.21",
"artplayer": "^5.1.1",
"dashjs": "^4.7.4",
"hls.js": "^1.5.7",
"mpegts.js": "^1.7.3",
"vidstack": "^1.10.9",
"vue": "^3.4.21",
"vuepress": "2.0.0-rc.9",
"vuepress-plugin-search-pro": "2.0.0-rc.32",
"vuepress-theme-hope": "2.0.0-rc.32"
}

  • Output of npx vuepress info in my VuePress project:
    System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400F @ 2.60GHz
    Memory: 10.48 GB / 31.87 GB
    Binaries:
    Node: 20.8.1 - e:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.2.1 - e:\Program Files\nodejs\npm.CMD
    pnpm: Not Found
    bun: Not Found
    Utilities:
    Git: 2.40.0.
    Browsers:
    Chrome: Not Found
    Edge: Chromium (122.0.2365.92)
    npmPackages:
    @vuepress/bundler-vite: 2.0.0-rc.9 => 2.0.0-rc.9
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli: 2.0.0-rc.9
    @vuepress/client: 2.0.0-rc.9
    @vuepress/core: 2.0.0-rc.9
    @vuepress/markdown: 2.0.0-rc.9
    @vuepress/shared: 2.0.0-rc.9
    @vuepress/utils: 2.0.0-rc.9
    vue: ^3.4.21 => 3.4.21
    vue-router: 4.3.0
    vuepress: 2.0.0-rc.9 => 2.0.0-rc.9
@bn-l
Copy link

bn-l commented Mar 28, 2024

Just FYI this repo is deprecated and will continue to accrue security and dependency deprecation issues.

From the readme:

VuePress is now in maintenance mode. For a next-gen Vue-based SSG built on top of Vue 3 + Vite, check out VitePress.

It is frustrating that a google for vuepress goes to vuepress 1.x and there is no clear mention you are on a deprecated project. Almost like putting the gun in your hand, pointing it at your foot and saying "you should be more careful!"

This is "vuepress-next": https://v2.vuepress.vuejs.org/

@brycenhe
Copy link
Author

brycenhe commented Apr 8, 2024

It was resolved. The issue occurred due to HTML optimization being enabled when deployed to the production environment, resulting in key tags being optimized out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants