Skip to content

Handle semver issue in vue-router #2606

@soletan

Description

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

Bug report

Steps to reproduce

  1. Set up custom theme.
  2. Use router exposed in enhanceApp.js for registering global navigation guard.
  3. Implement redirection by invoking guard's next() handler with URL.
  4. Run vuepress build.

Actual repro: https://github.com/soletan/vue-router-test

What is expected?

Build should succeed.

What is actually happening?

Build fails due to some pageMeta being undefined. In addition there are unhandled promise rejections logged as errors.

Other relevant information

Output of npx vuepress info in my VuePress project:

Environment Info:

  System:
    OS: Windows 10 10.0.19041
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
  Binaries:
    Node: 12.16.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.4 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 85.0.4183.102
    Edge: Spartan (44.19041.423.0), Chromium (85.0.564.44)
  npmPackages:
    @vuepress/core:  1.5.4
    @vuepress/theme-default:  1.5.4
    vuepress: ^1.5.4 => 1.5.4
  npmGlobalPackages:
    vuepress: Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions