slidev icon indicating copy to clipboard operation
slidev copied to clipboard

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

Open daguanren21 opened this issue 5 months ago • 1 comments

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).

daguanren21 avatar Jul 22 '25 08:07 daguanren21

I also encounter this issue occasionally but haven't figured out the root cause. Usually a hard refresh would temporary fix it tho.

Would be apppericated if anyone could look deep into this.

antfu avatar Jul 24 '25 06:07 antfu