question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compiling too slow on next 9.4

See original GitHub issue

Maintainer 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:

  1. Install next 9.4
  2. run next dev and start the server
  3. Go to any page in localhost:3000
  4. 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

image

System information

  • OS: Windows
  • Version of Next.js: 9.4
  • Version of Node.js: 12.16.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:60
  • Comments:35 (13 by maintainers)

github_iconTop GitHub Comments

35reactions
Timercommented, May 15, 2020

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.

27reactions
Timercommented, May 13, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found