You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue only occurs sometimes on the initial load of the dev preview, any subsequent loads after making edits to the project are fine. The built version of the project also appears to be fine.
The text was updated successfully, but these errors were encountered:
Are there two Slidev servers running at the same time, and on the same port?
Yes! Your question made me realize that I had the in-browser tab that pops up when starting the dev server AND the VSCode Slidev extension preview active at the same time. During my testing yesterday, I did not have the preview tab opened in VSCode and it worked fine. I just tried it again with the VSCode preview window open in my editor and one of the presentation instances (looks like the first one to load) encounters the Error: Runner for language "<lang>" not found error.
I edited the original issue post's replication instructions to reflect this new information.
KermanX
changed the title
Custom code-runners don't always load on initial dev preview
Two dev servers on the same port cause setup functions wrongly loaded
Aug 21, 2024
Describe the bug
Sometimes, the initial run of the
dev
preview does not load customcode-runner
implementations.Minimal reproduction
Steps to reproduce the behavior:
npm run dev
while having VSCode extension preview tab activeError: Runner for language "<lang>" not found
on one of the presentations (in-editor or in-browser)See slidev-code-runner for an example with a custom Python implementation in
./setup/code-runners.ts
Environment
npm create slidev@latest
)Notes
This issue only occurs sometimes on the initial load of the
dev
preview, any subsequent loads after making edits to the project are fine. The built version of the project also appears to be fine.The text was updated successfully, but these errors were encountered: