components icon indicating copy to clipboard operation
components copied to clipboard

Speed

Open 684efs3 opened this issue 4 years ago • 5 comments

I've noticed that when auto import for components is turned on, the hot reload is very slow. When I turn auto import off, it is much faster.

Is there any way to improve the speed of the hot reload when auto importing of components is on?

684efs3 avatar Apr 13 '21 16:04 684efs3

Hi. What is your nuxt version?

pi0 avatar Apr 13 '21 17:04 pi0

2.15.3

684efs3 avatar Apr 14 '21 14:04 684efs3

I have the same problem when components: true load very slowly, but when components: false and manually navigate, it loads quickly.

nuxt version: 2.15.4

When components: true.

bandicam-2021-04-19-19-33-09-907

When components: false.

bandicam-2021-04-19-19-46-23-186

Please resolve this issue.

Rasool-deldar avatar Apr 19 '21 15:04 Rasool-deldar

@Rasool-deldar Vuetify has its own loader system similar to components module (which i would suggest track in vuetify-module). For investigation here we need a pure project using nuxt 2.15+ (that uses components v2)

pi0 avatar Apr 19 '21 16:04 pi0

I don't have an example, but experiencing the same problem after upgrading to Nuxt 2.15+ (from 2.14.12). My guess for what's happening is that custom components within custom components are loaded slower. Importing the slow-loading components manually resolves the bug.

tre-dev avatar Jun 27 '21 12:06 tre-dev