title: Include external javascript file in a nuxt.js page
body: <p>I have a relatively simple question.</p>
  
  <p>I am trying to implement <a href="https://codepen.io/saurabhdaware/pen/NWWbOvv" rel="noreferrer">the widget from this codepen</a> in Nuxt.js.</p>
  
  <p>Here's my code, which works fine if I use RAW HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
    &lt;dev-widget data-username="saurabhdaware"&gt;&lt;/dev-widget&gt;
    &lt;script src="https://unpkg.com/dev-widget@1.0.3/dist/card.component.mjs" type="module"&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>But when I try to include this dev widget in my nuxt.js project, in one of my pages, it does not work.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;template&gt;
    &lt;div class="container"&gt;
  
      &lt;div&gt;
          &lt;dev-widget data-username="saurabhdaware"&gt;&lt;/dev-widget&gt;
      &lt;/div&gt;
  
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  
  export default {
    layout: "default",
  };
  &lt;/script&gt;
  
  &lt;script src="https://unpkg.com/dev-widget@1.0.3/dist/card.component.mjs" type="module"&gt;&lt;/script&gt;
  
  </code></pre>
  
  <p>I keep getting an error: </p>
  
  <pre><code>Unknown custom element: &lt; dev-widget &gt;
  </code></pre>
  
  <p>Any idea what I am doing wrong here? </p>