title: How to Install Vue Packages in nuxt.js
body: <p>I'm trying to install <a href="https://www.npmjs.com/package/vue-typer" rel="noreferrer">Vue Typer</a> in my Nuxt js app but no luck. I keep getting "document not defined". I tried importing it in my nuxt.config.js as a plugin but it doesn't work. </p>
  
  <p>I got it working in my VueCLI 3, seems to work fine with this method.</p>
  
  <p>Appreciate it!</p>
  
  <p>Getting </p>
  
  <p><code>NuxtServerError render function or template not defined in component: anonymous</code></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>////plugins///
  
  import Vue from vue;
  
  if (process.client) {
     const VueTyper = require('vue-typer');
     Vue.use(VueTyper);
  }
  
  ///nuxt.config.js///
  
  plugins: [
      {src: '~/plugins/vue-typer.js', ssr: false}
    ],</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;template&gt;
      &lt;vue-typer text='Hello World! I was registered locally!'&gt;&lt;/vue-typer&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  const VueTyper = processs.client ? require('vue-typer'): '';
  export default {
      components: {
         VueTyper
      }
  }
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>