node-express app.get() marked as unresolved in webstorm

后端 未结 3 1424
[愿得一人]
[愿得一人] 2021-02-01 02:26

If you follow JetBrains\' Getting Started with Node.js in WebStorm instructions, node-express specific code is highlighted correctly. However if you create your own simple node-

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 02:34

    Instead of express definitelyTyped, use express types in your project:

    npm install --save-dev @types/express
    

    Alternatively, for yarn users:

    yarn add --dev @types/express
    

提交回复
热议问题