title: How can I use Firebase 9.x + Flow
body: <p>I'm working on a NextJS project using <a href="https://flow.org/en/" rel="nofollow noreferrer">Flow</a> and I'm trying to import <a href="https://www.npmjs.com/package//firebase" rel="nofollow noreferrer">Firebase</a> latest version 9.1.3, but when I try to use it, Flow complains that cannot find the module.</p>
  <pre class="lang-js prettyprint-override"><code>// Error: Cannot resolve module `firebase/app`.Flow(cannot-resolve-module)
  import { initializeApp, getApps } from 'firebase/app';
  import { getAnalytics } from 'firebase/analytics';
  </code></pre>
  <p>I only found an <a href="https://github.com/flow-typed/flow-typed/blob/master/definitions/npm/firebase_v5.x.x/flow_v0.104.x-/firebase_v5.x.x.js" rel="nofollow noreferrer">old solution on flow-typed</a> for Firebase 5.x.x, but API has changed since then, and manually writing a <a href="https://flow.org/en/docs/libdefs/" rel="nofollow noreferrer">Library Definition</a> is super time consuming.</p>
  <p>I noticed that Firebase uses Typescript, is there a way I can import/convert to use Flow?</p>