Skip to content
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

The project takes 3 to 10min to launch #21

Closed
Neogeekmo opened this issue Jan 5, 2023 · 4 comments
Closed

The project takes 3 to 10min to launch #21

Neogeekmo opened this issue Jan 5, 2023 · 4 comments

Comments

@Neogeekmo
Copy link

After downloading the project without making any changes.

The pnpm dev 4282ms to load fast (which is acceptable) but the UI takes between 3 to 10 min to load.
image

here ~3min
image

I don't understand why it has been idle for so long
Is there a particular config that can create this kind of problem?

@kingyue737
Copy link
Owner

On my computer, it took 80 seconds for first start which seems reasonable as there are some large dependencies like echarts and vuetify. Custom SCSS of Vuetify is also compiled on-the-fly which takes long time. During the first launch, vite optimzed and cached all the dependencies. Then you will find the site appear instantly next time you launch the dev server of vite.

Slow first start seems to be a long-standing issue of Vite vitejs/vite#7608 (comment)

But 3 to 10 mins seems unacceptable. What's the parameters of your computer?

Mine:

System:
    OS: Windows 10 10.0.22000
    CPU: (6) x64 Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz
    Memory: 2.31 GB / 15.86 GB

@Neogeekmo
Copy link
Author

I just closed and restarted the dev server and it take ~3min again.

    OS: Windows 10 Pro 10.0.19044
    CPU: 12th Gen Intel(R) Core(TM) i7-1265U   1.80 GHz
    Memory: 10.7 GB / 15.7GB

@profispojka
Copy link

Same problem. Large codebase. Cannot start cypress tests (with webpack, they worked)

@kingyue737
Copy link
Owner

kingyue737 commented Mar 16, 2023

If you need a lightweight template, I made one but with Vue 3 + Vuetify 3. The cold start can finish in a blink of an eye. Feel free to try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants