title: Error: Module should export a function: i18next
body: <p>In my Nuxt js application, I installed <a href="https://www.i18next.com/" rel="nofollow noreferrer">i18next</a>:</p>
  
  <pre><code>npm install --save-dev i18next
  </code></pre>
  
  <p>Then  whenever I add it to the plugin array in <strong>nuxt.config.js</strong> as the <a href="https://nuxtjs.org/guide/plugins/" rel="nofollow noreferrer">documentation</a> suggests:</p>
  
  <pre><code>module.exports = {
    build: {
      vendor: ['i18next']
    }
  }
  </code></pre>
  
  <p>I get this error when I start the sever (<code>npm run dev</code>)</p>
  
  <pre><code> ERROR  Nuxt error
  
    Error: Module should export a function: i18next
  
    - module.js:127 ModuleContainer.addModule
      [begueradj]/[nuxt]/lib/core/module.js:127:13
  
    - utils.js:96 promise.then
      [begueradj]/[nuxt]/lib/common/utils.js:96:43
  
  
    - next_tick.js:189 process._tickCallback
      internal/process/next_tick.js:189:7
  
    - module.js:696 Function.Module.runMain
      module.js:696:11
  
    - bootstrap_node.js:204 startup
      bootstrap_node.js:204:16
  
    - bootstrap_node.js:625 
      bootstrap_node.js:625:3
  </code></pre>
  
  <p>Why does this happen? How to fix it?</p>