slidevjs / slidev

Presentation Slides for Developers
https://sli.dev
MIT License
33.49k stars 1.37k forks source link

HMR always leads to crashes #1821

Closed Wxh16144 closed 3 months ago

Wxh16144 commented 3 months ago

Describe the bug

Check the screenshot. Every time I modify the md file, it always crashes after saving.

Minimal reproduction

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See the error

You can use https://sli.dev/new to create a new project to reproduce the issue.

Environment

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

image
KermanX commented 3 months ago

Sorry for this inconvenience. This has been fixed in the latest version.

Wxh16144 commented 3 months ago

Good job 🎉