I have a custom components library referenced as a dependency in package.json like this:
"dependencies": {
"nuxt": "^1.0.0-rc11",
"vue-components": "file:../../shared/vue-components"
}
It works well in another projects using it normally:
import { TsButton } from 'vue-components'
export default {
name: 'app',
components: { TsButton }
}
However, when using it in a nuxt project component renders and instantly dissapears (I guess it's rendering only in server). Throws this errors:
<img width="542" alt="imagen" src="https://user-images.githubusercontent.com/7016146/32837408-bf157b62-ca0d-11e7-91eb-21a7e12810f2.png"><img width="1465" alt="imagen" src="https://user-images.githubusercontent.com/7016146/32837453-eb5d2b84-ca0d-11e7-8a1e-8637d8efd298.png">I've tried including it in plugins with same result. When building and running in production mode, it works perfecly.
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1877">#c1877</a>)</em></sub></div>