import http from 'http';
http.createServer((req, res) => {
res.end('Hello World');
}).listen(3000, () => console.log('Port is running on 3000'));
I am using @types/node but it shows an error HTTP module does not have default export.
import http from 'http';
http.createServer((req, res) => {
res.end('Hello World');
}).listen(3000, () => console.log('Port is running on 3000'));
I am using @types/node but it shows an error HTTP module does not have default export.