Skip to content

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'afterEach') #2233

@daguanren21

Description

@daguanren21

Describe the bug

第一次启动切换偶现 router undefined,导致页面无法打开

Image Image

Environment

  • Slidev version:52.0.0
  • Browser: Chrome
  • OS: node 24

If you are using Slidev globally (i.e. npx slidev or npm i -g slidev), please try to reproduce the issue in a local project (i.e. npm create slidev@latest).

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions