I am making a server using TypeScript that my angular app can connect to, but I get the following error when I try to run it: (PS I tried using destructuring with the AddressInfo, but Node.js or TS is not compatible yet with ES6 features)

```
const {address, port} = server.address() as AddressInfo;
                                             ^^

SyntaxError: Unexpected identifier
    at Module._compile (internal/modules/cjs/loader.js:720:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:643:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:839:10)
    at internal/main/run_main_module.js:17:11 

```

The code below:

```
const express = require('express');
const AddressInfo = require('AddressInfo');
const app = express();

app.get('/', (req, res) => res.send('Hello from Express'));

app.get('/products', (req, res) => res.send('Got a request for products'));

app.get('/reviews', (req, res) => res.send('Got a request for reviews'));

const server = app.listen(8000, "localhost", () => {
    const {address, port} = server.address() as AddressInfo;
    console.log(`Listening on ${address}:${port}`);
});

```