naugtur / blocked-at

Detects node eventloop block and reports where it started
MIT License
321 stars 25 forks source link

Import triggers false positive #31

Open LJNeon opened 4 years ago

LJNeon commented 4 years ago

Whenever I start the process, it triggers hundreds of errors, all nearly identical to the following:

7/12/2020, 12:49:30 AM [WARN] Blocked (51.30170703125ms) [
  '    at link (internal/modules/esm/module_job.js:42:32)',
  '    at new ModuleJob (internal/modules/esm/module_job.js:63:19)',
  '    at Loader.getModuleJob (internal/modules/esm/loader.js:242:11)'
]
naugtur commented 4 years ago

Very interesting. Could you share a setup/example for me too instantly reproduce? Node version and any other context appreciated.

LJNeon commented 4 years ago

I spent maybe 30 minutes trying to create a bare-bones repro and was entirely unable to. I don't have time to look into it in more detail, and this is for a project that isn't open-source so I can't share the source. Node version was the latest version of v14 at the time. It's a fairly big project with many files, if that's useful context.