TS2307: Cannot find module 'express'
node.js, typescript
Solution
The comments to your question by @Saravana and @domdambrogia are both correct.
Firstly the syntax is incorrect. It should be:
import express from 'express';
Secondly you need to install the typing:
npm install @types/express --save-dev
Problem
I am just getting started with TypeScript and I am not sure why I am seeing this error in my IDE(Webstorm). "TS2307:Cannot find module 'express'" ``` import express = require("express"); ``` I have uninstalled/installed back the typescript globally and still see the error. I used the following tutorial as a starting point http://www.vandiest.biz/?p=3931 Currently, I am blocked and not sure how to proceed forward with this solution. Also I have tried recommendations on some other posts regarding the same error, but with no luck.