title: Uncaught Reference Error: faceapi is not defined
body: <p>I am currently having some issues with faceapi in javascript, faceapi is a code for your face to get detected, please help me with this error.</p>
  <p>Code:</p>
  <pre><code>const video = document.getElementById('video')
  
  Promise.all([
      faceapi.nets.tinyFaceDetector.loadFromUri('/models'),
      faceapi.nets.faceLandmark68Net.loadFromUri('/models'),
      faceapi.nets.faceRecognitionNet.loadFromUri('/models'),
      faceapi.nets.faceExpressionNet.loadFromUri('/models')
    ]).then(startVideo)
  
  function startVideo() {
      navigator.getUserMedia(
          { video: {} },
          stream =&gt; video.srcObject = stream,
          err =&gt; console.error(err)
      )
  }
  
  startVideo()
  </code></pre>