I am starting with typescript and installed the typing files for node and express,body-parser. When i try to run compile , but on compiling I see the errors that it cannot import express and body parser. But I also installed the node modules separately for all of them so after tsc compiles the code it would run fine . But the compilation errors are still there.
The Errors
app.ts(2,26): error TS2307: Cannot find module 'express'.
app.ts(9,12): error TS2304: Cannot find name 'process'.
import express = require('express');
let app = express();
app.get('/',(req,res)=>{
res.send("Hello");
})
// Listen for HTTP traffic
app.listen(process.env.PORT || 3000);