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

Many imports in dev #53

Open
VitaliyInshakov opened this issue Oct 9, 2023 · 7 comments
Open

Many imports in dev #53

VitaliyInshakov opened this issue Oct 9, 2023 · 7 comments

Comments

@VitaliyInshakov
Copy link

Version: 2.5.0
Nuxt: 3.6.0
Hi! I found closed issue about many imports in dev mode #47
And it's still present in last version
image

@jo0707
Copy link

jo0707 commented Oct 27, 2023

Same here, on Brave and Chrome, script loading always on pending status and Nuxt becomes unresponsive, even though it's not confirmed yet. In Firefox, all scripts can be loaded and Nuxt is responsive although it takes a long time to load.

@miftahur-ridwan
Copy link

Same here until now, using version: 2.5.3

Screenshot 2023-12-21 at 17 04 38

@wokalek
Copy link

wokalek commented Dec 26, 2023

Same here. Disposing of a hard drive like this is simply disgusting.

@odranoelBR
Copy link

Same here.

@jo0707
Copy link

jo0707 commented Dec 27, 2023

I found a temporary fix. Add "lodash-es" in vite.optimizeDeps in nuxt.config.ts file

nuxt.config.ts

export default defineNuxtConfig({
    modules: [...],
    // add this
    vite: {
       optimizeDeps: {
          include: ["lodash-es"],
       },
    },
})

@wokalek
Copy link

wokalek commented Dec 27, 2023

@jo0707 This really worked, thanks! But still this is a temporary solution.

@cipami
I would recommend the author to look at how vueuse dependencies are imported. It uses import via a hook. Maybe this will solve the problem.

@lizy0329-biubiubiu
Copy link

As an official nuxt module, there shouldn't be this kind of performance issue

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

6 participants