title: Linking VS Code to Firebase: module error
body: <p>I've got what I think is a really simple issue here when trying to link my firebase to my VS code. I'm getting the following error in the console when running my index.html on my local server:</p>
  <blockquote>
  <p>Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of &quot;text/html&quot;. Strict MIME type checking is enforced for module scripts per HTML spec.</p>
  </blockquote>
  <p>This is my HTML:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  
    
      
      HUT
    
  
     
      
  
        // Initialize Cloud Firestore through Firebase
        import { initializeApp } from &quot;../firebase/app&quot;
        import { getFirestore } from &quot;../firebase/firestore&quot;
        const firebaseApp = initializeApp({
        apiKey: '',
        authDomain: '',
        projectId: ''
        });
      
        const db = getFirestore();  
      
      &lt;/script&gt;
  </code></pre>
  <p>So I've added type=&quot;module&quot; to my script tag and also tried running this in a separate index.js file also adding type=&quot;module&quot; but I still get the error. I'm sure this is really simple but any help would be really appreciated as I'm super stuck here and can't move past it!</p>