Open VitaliyInshakov opened 8 months ago
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.
Same here until now, using version: 2.5.3
Same here. Disposing of a hard drive like this is simply disgusting.
Same here.
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"],
},
},
})
@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.
As an official nuxt module, there shouldn't be this kind of performance issue
Version: 2.5.0 Nuxt: 3.6.0 Hi! I found closed issue about many imports in dev mode https://github.com/cipami/nuxt-lodash/issues/47 And it's still present in last version