slidev icon indicating copy to clipboard operation
slidev copied to clipboard

VSCode extension 52.10.1: Preview pane broken "TypeError: fetch failed"

Open cben opened this issue 4 weeks ago • 7 comments

Describe the bug

Regression in latest extension 52.10.1 (I'm running VSCodium, getting it via https://open-vsx.org/extension/antfu/slidev), preview pane never renders, says (TypeError: fetch failed):

Image

With v52.1.0 server, whether started externally or from VSCodium. Note that same server loads in browser fine (whether started externally or from VSCodium)!

Going back to 51.4.0 extension works (with v52.1.0 server, whether started externally or from VSCodium).

Minimal reproduction

Steps to reproduce the behavior:

  1. git clone https://gitlab.com/cben/ipywm-notes (probably any repo)
  2. cd ipywm-notes/reloading/
  3. yarn install
  4. codium . (probably code . too? didn't test)
  5. Open Slidev pane
  6. Click ▹ Start slidev dev server => launches fine, opens in browser fine
  7. However, Preview pane doesn't render, clicking ↻ Refresh preview page doesn't help.

Environment

  • extension version: 52.10.1
  • Slidev version: 52.10.1
  • Browser: works in Chromium 142.0.7444.162, Firefox 145.0 too.
  • OS: Nobara 43 (a Fedora linux derivative), running codium-1.106.37943-el8.x86_64 rpm package from https://vscodium.com/

cben avatar Dec 01 '25 18:12 cben

At first I suspected some kind of network sandboxing, but I'm not running VSCod[ium] under flatpak or similar container tech, I installed it as regular .rpm package.

And communication does work both ways:

  • [x] server launched from VSCodium -> loads fine in Chrome/Firefox
  • [x] previous extension version 51.4.0 loads fine <- server launched in external terminal
  • [x] Ctrl+Shift+P "Simple browser" for http://localhost:3030 also loads fine <- server launched in external terminal

I guess the TypeError does point towards a code bug in latest extension?

cben avatar Dec 01 '25 18:12 cben

I encountered the same error. Temporarily switched to the previous version 51.4.0, which works fine.

nujabse avatar Dec 02 '25 02:12 nujabse

I have a similar issue.

3wweiweiwu avatar Dec 06 '25 01:12 3wweiweiwu

Can confirm that this issue is only in the latest version. If you, like me, just need to get some work done, you can install the older version 51.4.0 in the VSCode Extension page.

Image Image

x avatar Dec 06 '25 16:12 x

I recently rewrote the extension in #2390. You can try it by installing the VSIX file inside this zip.

kermanx avatar Dec 06 '25 16:12 kermanx

Latest extension v52.11.0, works again 🎉 Thanks! 🙏

  • [x] Shows preview, both with server launched externally and launched by extension.
  • [x] Preview<->cursor sync works, both ways.

cben avatar Dec 10 '25 12:12 cben

For me, v52.11.0 and v52.10.1 do not work, whereas a past version v51.4.0 works well. Their previews do not show, although I can access it with a web browser.

Image

herosi avatar Dec 12 '25 09:12 herosi