Static GitHub Issues

[527] [help wanted] how to make a component compatible nuxt.js SSR

prev: The error layout is inconsistent with the general layout structure.
next: github-webhook-handler

hi ,

I want write a component , publish on npm but , even I don't write any thing , I got error [nuxt.js] Cannot load components TypeError: Cannot read property 'toLowerCase' of undefined

//mycomponent.js
const MyComponent = {
  install: function(Vue, options) { }
};
module.exports = MyComponent;

index.vue

import Vue from 'vue';
const mycomponent = require('./mycomponent.js');
Vue.use(mycomponent);

If I want compatible nuxt.js SSR , do I need implement what ? have any one can give some reference ? thanks.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c453">#c453</a>)</em></sub></div>