Skip to content

Since v1.6.2, am i the only one to observe issues when i m going on my vitepress through the browser url #4645

@alxg0v1

Description

@alxg0v1

Describe the bug

When i m navigating through the browser url, i have navigation issues only on deployed application (on localhost, i didn't observe this behaviour). Either a different page is showing than the one asked, either the home page is not fully loaded. Otherwise, when i navigate through links on the website, i do not observe issues. It appears on v1.6.2 and still do on v1.6.3.

Got this homepage:
https://github.com/alxg0v1/images/blob/main/homepage_bug.png

Expected this homepage:
https://github.com/alxg0v1/images/blob/main/homepage_ok.png

Got this content:
https://github.com/alxg0v1/images/blob/main/gettingstarted_bug.png

Expected this content:
https://github.com/alxg0v1/images/blob/main/gettingstarted_ok.png

Reproduction

On a deployed v1.6.2 or v1.6.3 vitepress app, enter directly the url of your vitepress homepage on your browser, the homepage loads the header only. try to enter a working path of your vitepress on you browser url bar, it could not be the asked page.

Expected behavior

When i enter, the URL homepage of my vitepress, i expect the page to be the good one et to be fully loaded.

System Info

I have some : window is not defined at build, but succeeds.

$ npx envinfo --system --npmPackages vitepress --binaries --browsers -y && export NODE_OPTIONS=--max_old_space_size=4096 && npm i && npm run docs:build
npm WARN exec The following package was not found and will be installed: envinfo@7.14.0
  System:
    OS: Linux 5.10 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 AMD EPYC 7R32
    Memory: 14.41 GB / 15.43 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 20.16.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 9.7.2 - /usr/local/bin/npm
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
added 646 packages, and audited 647 packages in 8s
181 packages are looking for funding
  run `npm fund` for details
7 moderate severity vulnerabilities
To address issues that do not require attention, run:
  npm audit fix
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
> docs:build
> vitepress build docs
  vitepress v1.6.3
- building client + server bundles...
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ building client + server bundles...
- rendering pages...
ReferenceError: window is not defined
    at setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5256:5)
    at _sfc_main$1.setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5285:25)
    at callWithErrorHandling (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:86:19)
    at setupStatefulComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6292:25)
    at setupComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6279:36)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:376:15)
    at renderVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:507:14)
    at renderComponentSubTree (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:459:7)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)
    at renderToString (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:674:24)
ReferenceError: window is not defined
    at setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5256:5)
    at _sfc_main$1.setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5285:25)
    at callWithErrorHandling (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:86:19)
    at setupStatefulComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6292:25)
    at setupComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6279:36)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:376:15)
    at renderVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:507:14)
    at renderComponentSubTree (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:459:7)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)
    at renderToString (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:674:24)
ReferenceError: window is not defined
    at setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5256:5)
    at _sfc_main$1.setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5285:25)
    at callWithErrorHandling (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:86:19)
    at setupStatefulComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6292:25)
    at setupComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6279:36)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:376:15)
    at renderVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:507:14)
    at renderComponentSubTree (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:459:7)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)
    at renderToString (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:674:24)
ReferenceError: window is not defined
    at setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5256:5)
    at _sfc_main$1.setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5285:25)
    at callWithErrorHandling (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:86:19)
    at setupStatefulComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6292:25)
    at setupComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6279:36)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:376:15)
    at renderVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:507:14)
    at renderComponentSubTree (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:459:7)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)
    at renderToString (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:674:24)
ReferenceError: window is not defined
    at setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5256:5)
    at _sfc_main$1.setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5285:25)
    at callWithErrorHandling (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:86:19)
    at setupStatefulComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6292:25)
    at setupComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6279:36)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:376:15)
    at renderVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:507:14)
    at renderComponentSubTree (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:459:7)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)
    at renderToString (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:674:24)
ReferenceError: window is not defined
    at setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5256:5)
    at _sfc_main$1.setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5285:25)
    at callWithErrorHandling (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:86:19)
    at setupStatefulComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6292:25)
    at setupComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6279:36)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:376:15)
    at renderVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:507:14)
    at renderComponentSubTree (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:459:7)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)
    at renderToString (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:674:24)
ReferenceError: window is not defined
    at setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5256:5)
    at _sfc_main$1.setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5285:25)
    at callWithErrorHandling (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:86:19)
    at setupStatefulComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6292:25)
    at setupComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6279:36)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:376:15)
    at renderVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:507:14)
    at renderComponentSubTree (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:459:7)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)
    at renderToString (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:674:24)
ReferenceError: window is not defined
    at setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5256:5)
    at _sfc_main$1.setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5285:25)
    at callWithErrorHandling (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:86:19)
    at setupStatefulComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6292:25)
    at setupComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6279:36)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:376:15)
    at renderVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:507:14)
    at renderComponentSubTree (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:459:7)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)
    at renderToString (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:674:24)
ReferenceError: window is not defined
    at setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5256:5)
    at _sfc_main$1.setup (file:///builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/docs/.vitepress/.temp/app.js:5285:25)
    at callWithErrorHandling (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:86:19)
    at setupStatefulComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6292:25)
    at setupComponent (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:6279:36)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:376:15)
    at renderVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:507:14)
    at renderComponentSubTree (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:459:7)
    at renderComponentVNode (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)
    at renderToString (/builds/treezor/institutionnel/websites/trzdocs/trzdocsv2/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:674:24)
........ [very long stacktrace] ........
✓ rendering pages...
- generating sitemap...
✓ generating sitemap...
build complete in 44.52s.

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions