I can\'t believe that I\'m asking an obvious question, but I still get the error in console log.
Console says that it can\'t find the module in the directory, but I\
Check for the import statements.It should be ended with semicolon. If you miss any, you will get this error.
Also check whether following import statement added in you component.
import { threadId } from 'worker_threads';
If so remove that line. It works for me.