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>