Extremely Slow Dev Compile
Unanswered
Thai posted this in #help-forum
ThaiOP
I have started running into extremely slow compile times:
Has my modules just some how got out of hand ? This is a fairly large project but it just recently seems to take way longer and this is on an M1 Max MacBook with 32 gb .
myapp:dev:
myapp:dev: Retrying 1/3...
myapp:dev: ✓ Compiled /settings in 190.7s (2348 modules)
myapp:dev: â—‹ Compiling /api/trpc/[trpc] ...
myapp:dev: ✓ Compiled /api/trpc/[trpc] in 1582ms (2376 modules)
Has my modules just some how got out of hand ? This is a fairly large project but it just recently seems to take way longer and this is on an M1 Max MacBook with 32 gb .
2 Replies
Bombay-duck
Also running into this, were you able to sus out the cause?
Bombay-duck
I found one possible cause that helped resolve the issue in my case: tailwind was looking through too many folders and suddenly in nuxt 14 my compile times were horrendous. I'm not sure why tailwind is so much slower in 14 than in 13 but I fixed it by doing this:
Switch this:
To this:
Switch this:
content: ["../frontend/**/*.{js,ts,jsx,tsx}"],
To this:
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
],