title: ReferenceError: algoliasearch is not defined
body: <p>I'm trying to build and Algolia system with instantsearch.js from algolia but when I run this code I get an error of &quot;ReferenceError: algoliasearch is not defined&quot;. Is it because I'm missing some imports?
  How do I fix this?</p>
  <p>index.html</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;link rel=&quot;sytlesheet&quot; src=&quot;https://cdn.jsdelivr.net/instantsearch.js/1/instantsearch.min.css&quot;&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/instantsearch.css@7.3.1/themes/reset-min.css&quot; integrity=&quot;sha256-t2ATOGCtAIZNnzER679jwcFcKYfLlw01gli6F6oszk8=&quot; crossorigin=&quot;anonymous&quot;&gt;
          
      &lt;/head&gt;
      &lt;body&gt;
          &lt;header&gt;
              &lt;div id=&quot;input-container&quot;&gt;
                  &lt;input id=&quot;search-input&quot; placeholder=&quot;Search for Products&quot;&gt;
              &lt;/div&gt;
          &lt;/header&gt;
          &lt;main&gt;
              &lt;div id=&quot;hits&quot;&gt;
  
              &lt;/div&gt;
              &lt;div id=&quot;pagination&quot;&gt;
  
              &lt;/div&gt;
          &lt;/main&gt;
  
      &lt;/body&gt;
      &lt;script src=&quot;https://cdn.jsdelivr.net/instantsearch.js/1/instantsearch.min.js&quot;&gt;&lt;/script&gt;
      &lt;script src=&quot;app.js&quot;&gt;&lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  <p>app.js</p>
  <pre><code>const searchClient =  algoliasearch('', '');
  
  const search = instantsearch({
      indexName: &quot;users&quot;,
      searchClient,
      urlSync: true,
  })
  
  search.addWidgets([
      instantsearch.widgets.searchBox({
          container: &quot;#search-input&quot;,
      }),
  
      instantsearch.widgets.hits({
          container: &quot;#hits&quot;,
          hitsPerPage: 10,
          templates: {
              item: document.getElementById(&quot;hit-template&quot;).innerHTML,
              empty: &quot;We didn't find any results for the search &lt;em&gt;\&quot;{{query}}\&quot;&lt;em&gt;&quot;
          }
      }),
      
      instantsearch.widgets.pagination({
          container: &quot;#pagination&quot;,
      }),
  ]);
  
  
  search.start();
  </code></pre>