Can't resolve module (not found) in React.js

前端 未结 15 1401
太阳男子
太阳男子 2020-12-07 22:03

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\

15条回答
  •  生来不讨喜
    2020-12-07 22:25

    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.

提交回复
热议问题