title: TS: Cannot find module 'follow-redirects'
body: <p>I am trying to use this library based on this <a href="https://stackoverflow.com/a/13390241/5923973">answer</a>:</p>
  <p>Once I run <code>npm install @types/follow-redirects</code> , VS suggests follow-redirects without problems, so I end up having this in my code:</p>
  <p>import { https } from &quot;follow-redirects&quot;</p>
  <p>The problem comes when I try to compile this (when doing firebase deploy).
  I get an error saying: Error: Cannot find module 'follow-redirects'.</p>
  <p>As you can see in my package.json, I am using other dependencies without problem:</p>
  <pre><code>{
    &quot;name&quot;: &quot;functions&quot;,
    &quot;scripts&quot;: {
      &quot;lint&quot;: &quot;eslint --ext .js,.ts .&quot;,
      &quot;build&quot;: &quot;tsc&quot;,
      &quot;serve&quot;: &quot;npm run build &amp;&amp; firebase emulators:start --only functions&quot;,
      &quot;shell&quot;: &quot;npm run build &amp;&amp; firebase functions:shell&quot;,
      &quot;start&quot;: &quot;npm run shell&quot;,
      &quot;deploy&quot;: &quot;firebase deploy --only functions&quot;,
      &quot;logs&quot;: &quot;firebase functions:log&quot;
    },
    &quot;engines&quot;: {
      &quot;node&quot;: &quot;16&quot;
    },
    &quot;main&quot;: &quot;lib/index.js&quot;,
    &quot;dependencies&quot;: {
      &quot;@types/follow-redirects&quot;: &quot;^1.14.1&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;firebase&quot;: &quot;^9.6.3&quot;,
      &quot;firebase-admin&quot;: &quot;^9.8.0&quot;,
      &quot;firebase-functions&quot;: &quot;^3.18.1&quot;,
      &quot;http-status-codes&quot;: &quot;^1.3.2&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@types/chai&quot;: &quot;^4.2.11&quot;,
      &quot;@types/mocha&quot;: &quot;^7.0.2&quot;,
      &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^3.9.1&quot;,
      &quot;@typescript-eslint/parser&quot;: &quot;^3.8.0&quot;,
      &quot;chai&quot;: &quot;^4.2.0&quot;,
      &quot;eslint&quot;: &quot;^7.6.0&quot;,
      &quot;eslint-config-google&quot;: &quot;^0.14.0&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.22.0&quot;,
      &quot;firebase-functions-test&quot;: &quot;^0.2.0&quot;,
      &quot;mocha&quot;: &quot;^7.1.1&quot;,
      &quot;typescript&quot;: &quot;^3.8.0&quot;
    },
    &quot;private&quot;: true
  }
  </code></pre>
  <p>So not sure if the problem is coming from firebase, this library or maybe I made a mistake somewhere.</p>