Slow compilation in a brand new project
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
Hey everone. Using nextjs the first time since some weeks now. Are there any ways to debug the compilation process after calling the app the first time? I want to know what causes a slow compilation issue.
At the very beginning the compilation time was between 5-10 seconds.
Now its between 50 - 80 seconds. Its not too bad but as i worked with vite in the past, those timings are irritating 🤔
I've not so much dependencies and only 4 pages (including error page).
My Deps:
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fullcalendar/core": "^6.1.10",
"@fullcalendar/daygrid": "^6.1.10",
"@fullcalendar/interaction": "^6.1.10",
"@fullcalendar/react": "^6.1.10",
"@lottiefiles/lottie-player": "^2.0.2",
"@mui/icons-material": "^5.15.1",
"@mui/material": "^5.15.1",
"axios": "^1.6.2",
"components-psc": "workspace:*",
"date-fns": "^2.30.0",
"env-cmd": "^10.1.0",
"i18next": "^23.7.11",
"next": "14.0.2",
"next-i18next": "^15.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.5.0"
The app is in a monorepo. Already thought about that this may be the problem? The "components-psc" package is just smaller as the app itself.
Any ideas what i can do?
At the very beginning the compilation time was between 5-10 seconds.
Now its between 50 - 80 seconds. Its not too bad but as i worked with vite in the past, those timings are irritating 🤔
I've not so much dependencies and only 4 pages (including error page).
My Deps:
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fullcalendar/core": "^6.1.10",
"@fullcalendar/daygrid": "^6.1.10",
"@fullcalendar/interaction": "^6.1.10",
"@fullcalendar/react": "^6.1.10",
"@lottiefiles/lottie-player": "^2.0.2",
"@mui/icons-material": "^5.15.1",
"@mui/material": "^5.15.1",
"axios": "^1.6.2",
"components-psc": "workspace:*",
"date-fns": "^2.30.0",
"env-cmd": "^10.1.0",
"i18next": "^23.7.11",
"next": "14.0.2",
"next-i18next": "^15.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.5.0"
The app is in a monorepo. Already thought about that this may be the problem? The "components-psc" package is just smaller as the app itself.
Any ideas what i can do?