-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two dev servers on the same port cause setup functions wrongly loaded #1830
Comments
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 I edited the original issue post's replication instructions to reflect this new information. |
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: