vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.22k stars 2.13k forks source link

When using bun to start, modifying the content of the config.mts file will get stuck at restarting the service #4313

Open fangzhengjin opened 3 weeks ago

fangzhengjin commented 3 weeks ago

Describe the bug

When using bun to start, modifying the content of the config.mts file will get stuck at restarting the service

Reproduction

  1. bun run docs:dev
  2. Visit any page
  3. Modify the config.mts file

10:59:39 AM [vitepress] .vitepress/config.mts changed, restarting server...

Expected behavior

Normal restart

System Info

System:
  OS: macOS 15.0.1
  CPU: (16) arm64 Apple M3 Max
  Memory: 2.68 GB / 64.00 GB
  Shell: 5.9 - /bin/zsh
Binaries:
  bun: 1.1.33 - /private/tmp/bun-node-247456b67/bun
Browsers:
  Edge: 130.0.2849.56
  Safari: 18.0.1
npmPackages:
  vitepress: ^1.4.1 => 1.4.1

Additional context

No response

Validations

brc-dd commented 3 weeks ago

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?

fangzhengjin commented 3 weeks ago

I can't reproduce the problem in codesandbox, which is strange. Is there any way I can output more log information about vitepress?

brc-dd commented 3 weeks ago

try DEBUG='*' bunx --bun vitepress

brc-dd commented 3 weeks ago

Ok yeah, I tried again. Something is definitely wrong.

fangzhengjin commented 3 weeks ago

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:

7:03:19 PM [vitepress] .vitepress/config.mts changed, restarting server...

  vite:config bundled config file loaded in 3.81ms +7s
  vitepress:config loaded config at /Users/xxxxxx/Workspace/docs/.vitepress/config.mts +9s
  vite:time 4630.71ms /index.html +4s
  vite:time 4502.88ms /@vite/client +0ms
  vite:time 4502.52ms ../node_modules/vitepress/dist/client/app/index.js +0ms
  vite:time 4457.63ms ../node_modules/vitepress/dist/client/theme-default/styles/components/custom-block.css +0ms
  vite:time 4457.38ms ../node_modules/vitepress/dist/client/theme-default/styles/fonts.css +0ms
  vite:time 4421.42ms ../node_modules/vitepress/dist/client/theme-default/styles/components/vp-code.css +0ms
  vite:time 4420.92ms ../node_modules/vitepress/dist/client/theme-default/styles/components/vp-code-group.css +0ms
  vite:time 4420.66ms ../node_modules/vitepress/dist/client/theme-default/styles/vars.css +0ms
  vite:time 4420.45ms ../node_modules/vitepress/dist/client/theme-default/styles/base.css +0ms
  vite:time 4420.19ms ../node_modules/vitepress/dist/client/theme-default/styles/icons.css +0ms
  vite:time 4419.98ms ../node_modules/vitepress/dist/client/theme-default/styles/utils.css +0ms
  vite:time 4385.70ms ../node_modules/vitepress/dist/client/theme-default/styles/components/vp-doc.css +1ms
  vite:time 4385.13ms ../node_modules/vitepress/dist/client/theme-default/styles/components/vp-sponsor.css +0ms
  vite:time 4384.87ms ../node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue +0ms
  vite:time 4384.72ms ../node_modules/vitepress/dist/client/theme-default/Layout.vue +0ms
  vite:time 4384.54ms ../node_modules/vitepress/dist/client/theme-default/components/VPImage.vue +0ms
  vite:time 4384.26ms ../node_modules/vitepress/dist/client/theme-default/components/VPButton.vue +0ms
  vite:time 4351.34ms ../node_modules/vitepress/dist/client/theme-default/components/VPHomeContent.vue +0ms
  vite:time 4351.14ms ../node_modules/vitepress/dist/client/theme-default/components/VPHomeHero.vue +0ms
  vite:time 4351.05ms ../node_modules/vitepress/dist/client/theme-default/components/VPHomeFeatures.vue +0ms
  vite:time 4350.81ms ../node_modules/vitepress/dist/client/theme-default/components/VPHomeSponsors.vue +0ms
  vite:time 4350.66ms ../node_modules/vitepress/dist/client/theme-default/components/VPLink.vue +0ms
  vite:time 4350.48ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocAsideSponsors.vue +0ms
  vite:time 4335.85ms ../node_modules/vitepress/dist/client/theme-default/components/VPSocialLinks.vue +0ms
  vite:time 4335.69ms ../node_modules/vitepress/dist/client/theme-default/components/VPSocialLink.vue +0ms
  vite:time 4335.37ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamPageTitle.vue +0ms
  vite:time 4335.26ms ../node_modules/vitepress/dist/client/theme-default/components/VPSponsors.vue +0ms
  vite:time 4335.05ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue +0ms
  vite:time 4334.74ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamPageSection.vue +0ms
  vite:time 4326.29ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamMembers.vue +0ms
  vite:time 4326.06ms /@siteData +0ms
  vite:time 4324.93ms ../node_modules/vite/dist/client/env.mjs +0ms
  vite:time 4324.70ms ../node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue?vue&type=style&index=0&lang.css +0ms
  vite:time 4324.41ms /@id/__x00__plugin-vue:export-helper +0ms
  vite:time 4323.91ms ../node_modules/vitepress/dist/client/theme-default/components/VPBackdrop.vue +0ms
  vite:time 4323.58ms ../node_modules/vitepress/dist/client/theme-default/components/VPContent.vue +0ms
  vite:time 4323.45ms ../node_modules/vitepress/dist/client/theme-default/components/VPNav.vue +0ms
  vite:time 4323.25ms ../node_modules/vitepress/dist/client/theme-default/components/VPFooter.vue +0ms
  vite:time 4323.02ms ../node_modules/vitepress/dist/client/theme-default/components/VPLocalNav.vue +0ms
  vite:time 4322.82ms ../node_modules/vitepress/dist/client/theme-default/components/VPSidebar.vue +0ms
  vite:time 4321.30ms ../node_modules/vitepress/dist/client/theme-default/Layout.vue?vue&type=style&index=0&scoped=8f7cd5e4&lang.css +0ms
  vite:time 4321.02ms ../node_modules/vitepress/dist/client/theme-default/components/VPImage.vue?vue&type=style&index=0&scoped=262f00eb&lang.css +0ms
  vite:time 4320.77ms ../node_modules/vitepress/dist/client/theme-default/components/VPButton.vue?vue&type=style&index=0&scoped=2dba8ca9&lang.css +0ms
  vite:time 4320.58ms ../node_modules/vitepress/dist/client/theme-default/components/VPHomeContent.vue?vue&type=style&index=0&scoped=1a587439&lang.css +0ms
  vite:time 4320.28ms ../node_modules/vitepress/dist/client/theme-default/components/VPHero.vue +0ms
  vite:time 4320.16ms ../node_modules/vitepress/dist/client/theme-default/components/VPSkipLink.vue +0ms
  vite:time 4320.04ms ../node_modules/vitepress/dist/client/theme-default/components/VPFeatures.vue +0ms
  vite:time 4319.92ms ../node_modules/vitepress/dist/client/theme-default/components/VPHomeSponsors.vue?vue&type=style&index=0&scoped=4e7967a5&lang.css +0ms
  vite:time 4319.70ms ../node_modules/vitepress/dist/client/theme-default/components/VPSocialLinks.vue?vue&type=style&index=0&scoped=06aba893&lang.css +0ms
  vite:time 4319.49ms ../node_modules/vitepress/dist/client/theme-default/components/VPSocialLink.vue?vue&type=style&index=0&scoped=7c5ccdb4&lang.css +0ms
  vite:time 4319.30ms ../node_modules/vitepress/dist/client/theme-default/components/VPSponsorsGrid.vue +0ms
  vite:time 4318.49ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue?vue&type=style&index=0&scoped=5f7da39d&lang.css +0ms
  vite:time 4318.30ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamPageSection.vue?vue&type=style&index=0&scoped=38a4eb39&lang.css +0ms
  vite:time 4318.06ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamMembersItem.vue +0ms
  vite:time 4317.86ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamMembers.vue?vue&type=style&index=0&scoped=653053e5&lang.css +0ms
  vite:time 4317.67ms ../node_modules/vitepress/dist/client/theme-default/components/VPBackdrop.vue?vue&type=style&index=0&scoped=909652e9&lang.css +0ms
  vite:time 4317.43ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamPageTitle.vue?vue&type=style&index=0&scoped=baf690b4&lang.css +0ms
  vite:time 4317.13ms ../node_modules/vitepress/dist/client/theme-default/NotFound.vue +0ms
  vite:time 4317.00ms ../node_modules/vitepress/dist/client/theme-default/components/VPDoc.vue +0ms
  vite:time 4316.90ms ../node_modules/vitepress/dist/client/theme-default/components/VPHome.vue +0ms
  vite:time 4316.77ms ../node_modules/vitepress/dist/client/theme-default/components/VPPage.vue +0ms
  vite:time 4316.63ms ../node_modules/vitepress/dist/client/theme-default/components/VPContent.vue?vue&type=style&index=0&scoped=98ddab3d&lang.css +0ms
  vite:time 4316.27ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreen.vue +0ms
  vite:time 4316.13ms ../node_modules/vitepress/dist/client/theme-default/components/VPNav.vue?vue&type=style&index=0&scoped=9397ee4e&lang.css +1ms
  vite:time 4315.94ms ../node_modules/vitepress/dist/client/theme-default/components/VPFooter.vue?vue&type=style&index=0&scoped=80147a0d&lang.css +0ms
  vite:time 4315.73ms ../node_modules/vitepress/dist/client/theme-default/components/VPLocalNavOutlineDropdown.vue +0ms
  vite:time 4315.49ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBar.vue +0ms
  vite:time 4315.26ms ../node_modules/vitepress/dist/client/theme-default/components/VPSidebarGroup.vue +0ms
  vite:time 4315.15ms ../node_modules/vitepress/dist/client/theme-default/components/VPSidebar.vue?vue&type=style&index=0&scoped=6750ea26&lang.css +0ms
  vite:time 4314.93ms ../node_modules/vitepress/dist/client/theme-default/components/VPLocalNav.vue?vue&type=style&index=0&scoped=74b974be&lang.css +0ms
  vite:time 4310.74ms ../node_modules/vitepress/dist/client/theme-default/components/VPHero.vue?vue&type=style&index=0&scoped=72cc4481&lang.css +0ms
  vite:time 4310.40ms ../node_modules/vitepress/dist/client/theme-default/components/VPSkipLink.vue?vue&type=style&index=0&scoped=471574a7&lang.css +0ms
  vite:time 4310.17ms ../node_modules/vitepress/dist/client/theme-default/components/VPFeature.vue +0ms
  vite:time 4310.05ms ../node_modules/vitepress/dist/client/theme-default/components/VPFeatures.vue?vue&type=style&index=0&scoped=f5090ebe&lang.css +0ms
  vite:time 4309.83ms ../node_modules/vitepress/dist/client/theme-default/components/VPTeamMembersItem.vue?vue&type=style&index=0&scoped=7735210d&lang.css +0ms
  vite:time 4307.81ms ../node_modules/vitepress/dist/client/theme-default/NotFound.vue?vue&type=style&index=0&scoped=6c4a3ffe&lang.css +0ms
  vite:time 4307.44ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocAside.vue +0ms
  vite:time 4307.28ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocFooter.vue +0ms
  vite:time 4307.09ms ../node_modules/vitepress/dist/client/theme-default/components/VPDoc.vue?vue&type=style&index=0&scoped=10119189&lang.css +0ms
  vite:time 4306.91ms ../node_modules/vitepress/dist/client/theme-default/components/VPHome.vue?vue&type=style&index=0&scoped=d8beba3b&lang.css +0ms
  vite:time 4306.74ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenAppearance.vue +0ms
  vite:time 4306.57ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenSocialLinks.vue +0ms
  vite:time 4306.38ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenTranslations.vue +0ms
  vite:time 4306.20ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreen.vue?vue&type=style&index=0&scoped=b2c6164f&lang.css +0ms
  vite:time 4305.81ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocOutlineItem.vue +0ms
  vite:time 4305.67ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenMenu.vue +0ms
  vite:time 4305.44ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarAppearance.vue +0ms
  vite:time 4305.28ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarExtra.vue +0ms
  vite:time 4305.12ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarHamburger.vue +0ms
  vite:time 4305.04ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarSearch.vue +0ms
  vite:time 4304.81ms ../node_modules/vitepress/dist/client/theme-default/components/VPLocalNavOutlineDropdown.vue?vue&type=style&index=0&scoped=0661805f&lang.css +0ms
  vite:time 4304.53ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarSocialLinks.vue +0ms
  vite:time 4304.41ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarTitle.vue +0ms
  vite:time 4304.29ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarTranslations.vue +0ms
  vite:time 4304.17ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBar.vue?vue&type=style&index=0&scoped=cf6e7c5e&lang.css +0ms
  vite:time 4303.96ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarMenu.vue +0ms
  vite:time 4303.85ms ../node_modules/vitepress/dist/client/theme-default/components/VPSidebarGroup.vue?vue&type=style&index=0&scoped=8b980502&lang.css +0ms
  vite:time 4303.65ms ../node_modules/vitepress/dist/client/theme-default/components/VPFeature.vue?vue&type=style&index=0&scoped=549c013f&lang.css +0ms
  vite:time 4303.47ms ../node_modules/vitepress/dist/client/theme-default/components/VPSidebarItem.vue +0ms
  vite:time 4302.89ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocAsideOutline.vue +0ms
  vite:time 4302.29ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocAsideCarbonAds.vue +0ms
  vite:time 4302.15ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocAside.vue?vue&type=style&index=0&scoped=8676384c&lang.css +0ms
  vite:time 4301.85ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocFooterLastUpdated.vue +0ms
  vite:time 4301.32ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocFooter.vue?vue&type=style&index=0&scoped=29ec59c0&lang.css +0ms
  vite:time 4301.12ms ../node_modules/vitepress/dist/client/theme-default/components/VPSwitchAppearance.vue +0ms
  vite:time 4300.94ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenAppearance.vue?vue&type=style&index=0&scoped=bac6bbb9&lang.css +0ms
  vite:time 4299.47ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenTranslations.vue?vue&type=style&index=0&scoped=cc4ec570&lang.css +0ms
  vite:time 4297.61ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocOutlineItem.vue?vue&type=style&index=0&scoped=f2fb6e01&lang.css +0ms
  vite:time 4296.65ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenMenuLink.vue +0ms
  vite:time 4296.50ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +0ms
  vite:time 4296.02ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarAppearance.vue?vue&type=style&index=0&scoped=c6a0925d&lang.css +0ms
  vite:time 4295.76ms ../node_modules/vitepress/dist/client/theme-default/components/VPFlyout.vue +0ms
  vite:time 4295.64ms ../node_modules/vitepress/dist/client/theme-default/components/VPMenuLink.vue +0ms
  vite:time 4295.52ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarExtra.vue?vue&type=style&index=0&scoped=9e4c880d&lang.css +0ms
  vite:time 4295.33ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarHamburger.vue?vue&type=style&index=0&scoped=510c789e&lang.css +0ms
  vite:time 4295.15ms ../node_modules/@docsearch/css/dist/style.css +0ms
  vite:time 4294.99ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarSearch.vue?vue&type=style&index=0&lang.css +0ms
  vite:time 4294.82ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarSocialLinks.vue?vue&type=style&index=0&scoped=6a815e6c&lang.css +0ms
  vite:time 4294.65ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarTitle.vue?vue&type=style&index=0&scoped=55e263fd&lang.css +0ms
  vite:time 4294.41ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarTranslations.vue?vue&type=style&index=0&scoped=74f268c9&lang.css +0ms
  vite:time 4294.21ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarSearchButton.vue +0ms
  vite:time 4292.89ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarMenuGroup.vue +0ms
  vite:time 4292.76ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarMenuLink.vue +0ms
  vite:time 4292.54ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarMenu.vue?vue&type=style&index=0&scoped=950c7b98&lang.css +1ms
  vite:time 4292.34ms ../node_modules/vitepress/dist/client/theme-default/components/VPSidebarItem.vue?vue&type=style&index=0&scoped=3db96182&lang.css +0ms
  vite:time 4292.12ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocAsideOutline.vue?vue&type=style&index=0&scoped=3f9b8864&lang.css +0ms
  vite:time 4291.91ms ../node_modules/vitepress/dist/client/theme-default/components/VPDocFooterLastUpdated.vue?vue&type=style&index=0&scoped=6327d460&lang.css +0ms
  vite:time 4291.71ms ../node_modules/vitepress/dist/client/theme-default/components/VPSwitch.vue +0ms
  vite:time 4291.50ms ../node_modules/vitepress/dist/client/theme-default/components/VPSwitchAppearance.vue?vue&type=style&index=0&scoped=6c962326&lang.css +0ms
  vite:time 4290.96ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenMenuLink.vue?vue&type=style&index=0&scoped=261bdca4&lang.css +0ms
  vite:time 4290.71ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +0ms
  vite:time 4290.54ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +0ms
  vite:time 4290.18ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenMenuGroup.vue?vue&type=style&index=0&scoped=c5cdc453&lang.css +0ms
  vite:time 4290.00ms ../node_modules/vitepress/dist/client/theme-default/components/VPMenu.vue +0ms
  vite:time 4289.87ms ../node_modules/vitepress/dist/client/theme-default/components/VPFlyout.vue?vue&type=style&index=0&scoped=5691862c&lang.css +0ms
  vite:time 4289.65ms ../node_modules/vitepress/dist/client/theme-default/components/VPMenuLink.vue?vue&type=style&index=0&scoped=6c4f796b&lang.css +0ms
  vite:time 4288.43ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarSearchButton.vue?vue&type=style&index=0&lang.css +0ms
  vite:time 4287.73ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavBarMenuLink.vue?vue&type=style&index=0&scoped=094e56d3&lang.css +0ms
  vite:time 4286.93ms ../node_modules/vitepress/dist/client/theme-default/components/VPSwitch.vue?vue&type=style&index=0&scoped=70a26bb8&lang.css +0ms
  vite:time 4286.65ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue?vue&type=style&index=0&scoped=ffd4d2d0&lang.css +0ms
  vite:time 4286.44ms ../node_modules/vitepress/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue?vue&type=style&index=0&scoped=b526adfb&lang.css +0ms
  vite:time 4286.23ms ../node_modules/vitepress/dist/client/theme-default/components/VPMenu.vue?vue&type=style&index=0&scoped=e0f2b3ec&lang.css +0ms
  vite:time 4286.03ms ../node_modules/vitepress/dist/client/theme-default/components/VPMenuGroup.vue +0ms
  vite:time 4284.67ms ../node_modules/vitepress/dist/client/theme-default/components/VPMenuGroup.vue?vue&type=style&index=0&scoped=4db05b78&lang.css +0ms
  vite:time 4276.15ms /index.md?import +0ms
  vite:time 4222.16ms /Users/xxxx/Workspace/docs/node_modules/vitepress/dist/client/theme-default/fonts/inter-roman-latin.woff2 +0ms

Compared with the input parameter r, it seems that some process is missing.

fangzhengjin commented 3 weeks ago

In addition, if I restart multiple times with the parameter r, I see the following prompt. Is this normal?

[Shiki] 10 instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances.
brc-dd commented 3 weeks ago

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.

brc-dd commented 3 weeks ago

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.

fangzhengjin commented 2 weeks ago

This problem no longer exists in vitepress 1.4.3 and bun 1.1.34 versions.

brc-dd commented 2 weeks ago

Ah, are you sure? It still appears to be broken for me 👀

fangzhengjin commented 2 weeks ago

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 config.mts file!

brc-dd commented 2 weeks ago

https://github.com/user-attachments/assets/82206374-37d9-49b6-9a7c-70ea46066603

Are you sure you're using bun --bun vitepress? If you don't specify --bun it spawns a node process where vitepress obviously works.

fangzhengjin commented 2 weeks ago

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 --bun command implicitly because he couldn't find the node environment, but I recently installed nodejs on my computer, so he works fine!