Compiling too slow on next 9.4
See original GitHub issueMaintainer update
Please see https://github.com/vercel/next.js/issues/29559#issuecomment-938431883
Bug report
Describe the bug
Hello, I just upgraded next from 9.3 to 9.4 today. It seems that compiling a single page takes too long. More than 3 minutes. Sometimes it never compiles too.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Install next 9.4
- run
next dev
and start the server - Go to any page in
localhost:3000
- It takes a very long time to compile and even it compiles, the page never loads on browser sometimes.
Expected behavior
It should compile the page faster (usually 5 to 10 seconds) and load the page.
Screenshots
System information
- OS: Windows
- Version of Next.js: 9.4
- Version of Node.js: 12.16.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:60
- Comments:35 (13 by maintainers)
Top Results From Across the Web
next.js build times are slow. How can I make them faster?
The first step would be to find out what's causing those lengthy compile times. What does your build size look like? – juliomalves....
Read more >Compiling is slow after moving to Next.js 12.3 : r/nextjs - Reddit
Now after I upgraded my project to 12.3, I noticed making a simple text change takes around 5-7 seconds to update and it's...
Read more >Basic Features: Fast Refresh - Next.js
Next.js' Fast Refresh is a new hot reloading experience that gives you instantaneous feedback on edits made to your React components.
Read more >Upgrading Next.js for instant performance improvements
Automatic Font Optimization is available since Next.js 10 and automatically inlines font CSS at build time, eliminating an extra round trip to ...
Read more >ts-loader - npm
TypeScript loader for webpack. Latest version: 9.4.2, last published: a month ago. Start using ts-loader in your project by running `npm i ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those curious, this was caused by Windows Defender. Windows Defender was delaying the HMR (to do a scan) because our emitted JavaScript files contained the word
eval
! That’s why macOS was unaffected.Hi everyone!
Replying with "+1"s do not help us prioritize this issue any quicker. If you’d like us to fix this problem, please provide a reproducible demo.
Thanks!