slidev
slidev copied to clipboard
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'afterEach')
Describe the bug
第一次启动切换偶现 router undefined,导致页面无法打开
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).
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.