'require' keyword not being recognized by webstorm

后端 未结 5 1887
春和景丽
春和景丽 2021-02-01 03:15

I\'m using WebStorm as the IDE.

Here\'s my folder structure and express.js insalled:

\"ente

5条回答
  •  孤街浪徒
    2021-02-01 04:05

    Under Settings > Languages & Frameworks > Node.js and NPM make sure to check Index internal node modules. After it's done indexing, it will recognize the require keyword.

    enter image description here

提交回复
热议问题