Typescript : How to resolve 'rxjs/Rx has no exported member 'SubscriptionLike' : <p>I'm trying to follow this example here <a href="https://www.youtube.com/watch?v=gxCu5TEmxXE" rel="noreferrer">https://www.youtube.com/watch?v=gxCu5TEmxXE</a>, but when doing <code>tsc -p</code>, I get an error. Is there something I need to import?</p>

<p><strong>ERROR:</strong></p>

<p><code>node_modules/@angular/common/src/location/location.d.ts(1,10): error TS2305: Module '"...functions/node_modules/rxjs/Rx"' has no exported member 'SubscriptionLike'.</code></p>

<p><strong>TS FILE</strong></p>

<pre><code>import "zone.js/dist/zone-node";
import * as functions from "firebase-functions";
import * as express from "express"
import { renderModuleFactory } from "@angular/platform-server"
import * as fs from "fs"

const document = fs.readFileSync(__dirname + "/dist-server/index.html", "utf8");
const AppServerModuleNgFactory = require(__dirname + "/dist-server/main.bundle");

const app = express();
app.get("**", (req, res) =&gt; {
    const url = req.path;
    renderModuleFactory(AppServerModuleNgFactory, { document, url }).then(html =&gt; {
        res.send(html);
    });
});
exports.post = functions.https.onRequest(app);
</code></pre>

<p><strong>CONFIG</strong></p>

<pre><code>{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es2015",
    "rootDir": ".",
    "outDir": "../functions"
  },
  "files": [
    "index.ts"
  ]
}
</code></pre>
