-
Notifications
You must be signed in to change notification settings - Fork 156
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
Vite client warm up cost too much time #694
Comments
Thanks for your kind words @KyleRicardo 🥰 You are free to use any framework you want, this is open source and all the work you use is free to remember. It starts in 10s on my computer though, but seems that we may have some issues with Windows 🤔 Could you check on https://stackblitz.com/github/nuxt-themes/docus-starter to see how long it starts on your computer? |
Could you run Also, could you post your lockfile here? Thanks a lot. |
Also, can you run with We are really sorry about this experience and we will find a fix ASAP |
|
From the output of your screenshots, Vite build seem to be taking Running in debug mode and providing the output would be really helpful as well to find out what is taking so much time. |
Tried to run
Apparently |
My bad, I divided the milliseconds number by 100 to get seconds. But the result is just the time I need to get it to run(like, 50s or so).🤣 |
I'll dig into this on my Windows setup soon. Thanks for reporting. I suspect some path issue or loop somewhere. I don't have much knowledge over Windows file system, but I can tell that my boot time was less that 10 seconds the last time I successfully booted it with Git Bash on Windows. |
Understandable. I used to use Git Bash too but since Microsoft has released Windows Terminal, I embraced it, with Oh My Posh. Git Bash is basically built on MinGW, its filesystem is more like linux rather than Windows. Thanks for your efforts. Hope you guys can work it out. |
Do we have a way to trace/debug vite:extend hook @danielroe ? |
We can see how long nuxt hooks ( |
Not sure about it, but this might be related: |
Not sure for Nuxt Icon since it is not related to vite:extend hook |
Oh, I see the logs already (missed that first time round). Will see if I can replicate on windows. |
I'm working on a theme that uses some of Docus, I have a boot time of around 1 minute as well for Linux. There are many logs, so I won't post it all at this stage, can make a minimal reproduction later. The main 'pause' seems to be between I have debugged previously that the nuxt/content transformations are pretty slow, but not this slow.
Last time I tried vite-plugin-inspect with prior RC's it seemed to work, can give it a spin tomorrow if you haven't made any progress. |
The thing that's taking the most time is this plugin: https://github.com/nuxtlabs/nuxt-component-meta/blob/main/src/unplugin.ts. It's difficult to make comments about time as I'm testing in an underpowered windows virtual machine, but:
|
Releasing a new version of Docus (1.0.2) with the fix: Before (22s): After (6s): |
Confirming that the bootup time is a lot quicker now, thanks guys! |
Thank you, How exactly did this event fixed? Which library is it from ? |
Thanks for your effort. It's much quicker now. |
It came from nuxt-component-meta that is used in order to document the props of the components, but it is not yet used, so we disabled it in dev for now. |
Vite is known by its blazing fast startup time and HMR time.
Now Docus usually takes tens of seconds to startup, it's almost unbearable. More suprisingly, no one raised an issue like this. My behemoth Java backend project takes only 10 seconds to start up, while Docus takes amlost 1 minute. Is this even normal?
Perhaps I should keep embracing vitepress(even it's still alpha) rather than this immature framework.
The text was updated successfully, but these errors were encountered: