title: Is there an updated ways to import firebase/firestore app without my local sever or app being break?
body: <p>I am currently working on an application and everything is working fine until I tried to import firestore app from firebase to receive form data when submitted.I have tried to seek answers on youtube and it all seems to be the same approach as what I have tried already and it's not working. bellow is the syntax.</p>
  <pre><code>import {getFirestore, doc, setDoc, getDoc, collection, updateDoc} from &quot;firebase/firestore&quot;;
  </code></pre>
  <p>And created a variable datebase by setting it to getFirestore function.</p>
  <pre><code>const db = getFirestore();
  </code></pre>
  <p>when the above exist within my code my app breaks and when it commented my app runs but didn't get the data to be submitted. kindly assist by providing me a way forward.</p>