-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
When using bun to start, modifying the content of the config.mts file will get stuck at restarting the service #4313
Comments
It seems to work fine for me. It's just bit slow. I'm not sure why. Can you share the repo where this is happening? |
I can't reproduce the problem in codesandbox, which is strange. Is there any way I can output more log information about vitepress? |
try |
Ok yeah, I tried again. Something is definitely wrong. |
Yes, I found that after starting the development mode, if I don't access the page, it will not have any problems and can be restarted successfully every time. But when I visit any page and modify config.tsm, the following log is output:
Compared with the input parameter |
In addition, if I restart multiple times with the parameter
|
For me it's restarting fine, but the page contents are not being updated and there is some weird behavior if I reload few times after updating config. But I'm on older bun version, so things might have gotten worse with the new ones. I'll take a look and report on bun's repo. Most likely this will be happening on vanilla vite projects too. Regarding shiki, yeah you can ignore that. |
That shiki warning is fixed by #4321. And this is not happening with classic vite apps. Something might be wrong at our end. 👀 4s for everything seems very sus. |
This problem no longer exists in vitepress 1.4.3 and bun 1.1.34 versions. |
Ah, are you sure? It still appears to be broken for me 👀 |
Yes, I tried clearing all caches of node_module for bun and project and installed the latest version of bun and vitepress, he is working fine now and rebooting is very fast after modifying the |
Screen.Recording.2024-11-02.at.6.03.49.PM.movAre you sure you're using |
It's my problem, I didn't have nodejs installed before, and when I used bun run dev to start it up, he apparently added the |
Describe the bug
When using bun to start, modifying the content of the config.mts file will get stuck at restarting the service
Reproduction
bun run docs:dev
config.mts
file10:59:39 AM [vitepress] .vitepress/config.mts changed, restarting server...
Expected behavior
Normal restart
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: