{"action":"created","issue":{"url":"https://api.github.com/repos/lyonlai/blessed-vue/issues/4","repository_url":"https://api.github.com/repos/lyonlai/blessed-vue","labels_url":"https://api.github.com/repos/lyonlai/blessed-vue/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/lyonlai/blessed-vue/issues/4/comments","events_url":"https://api.github.com/repos/lyonlai/blessed-vue/issues/4/events","html_url":"https://github.com/lyonlai/blessed-vue/issues/4","id":254250384,"number":4,"title":"how can I use this in my Vue project?","user":{"login":"fluency03","id":7440735,"avatar_url":"https://avatars2.githubusercontent.com/u/7440735?v=4","gravatar_id":"","url":"https://api.github.com/users/fluency03","html_url":"https://github.com/fluency03","followers_url":"https://api.github.com/users/fluency03/followers","following_url":"https://api.github.com/users/fluency03/following{/other_user}","gists_url":"https://api.github.com/users/fluency03/gists{/gist_id}","starred_url":"https://api.github.com/users/fluency03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluency03/subscriptions","organizations_url":"https://api.github.com/users/fluency03/orgs","repos_url":"https://api.github.com/users/fluency03/repos","events_url":"https://api.github.com/users/fluency03/events{/privacy}","received_events_url":"https://api.github.com/users/fluency03/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-31T08:07:55Z","updated_at":"2017-09-03T22:29:21Z","closed_at":"2017-09-02T11:17:04Z","author_association":"NONE","body":"I am wondering how can I use this in my Vue project?\r\n\r\nI have tried following, but got errors.\r\n\r\n```js\r\nimport Vue from 'vue'\r\nimport blessed from 'blessed-vue'\r\nVue.use(blessed)\r\n\r\n// other code\r\n\r\nnew Vue({\r\n  components: { App },\r\n  router,\r\n  store,\r\n  template: '<App/>'\r\n}).$mount('#app')\r\n```\r\n\r\nErrors:\r\n\r\n```\r\n/Users/fluency03/Workplace/github/dockeron/node_modules/blessed-vue/dist/build.js:432 [Vue warn]: Vue is a constructor and should be called with the `new` keyword\r\nwarn @ /Users/fluency03/Workplace/github/dockeron/node_modules/blessed-vue/dist/build.js:432\r\nVue$3 @ /Users/fluency03/Workplace/github/dockeron/node_modules/blessed-vue/dist/build.js:4060\r\nVue.use @ vue.esm.js?65d7:4345\r\n(anonymous) @ main.js?3b76:34\r\n(anonymous) @ renderer.js:1383\r\n__webpack_require__ @ renderer.js:661\r\nfn @ renderer.js:87\r\n(anonymous) @ renderer.js:2500\r\n__webpack_require__ @ renderer.js:661\r\n(anonymous) @ renderer.js:710\r\n(anonymous) @ renderer.js:713\r\n/Users/fluency03/Workplace/github/dockeron/node_modules/blessed-vue/dist/build.js:4062 Uncaught TypeError: Cannot read property '_init' of null\r\n    at Vue$3 (/Users/fluency03/Workplace/github/dockeron/node_modules/blessed-vue/dist/build.js:4062)\r\n    at Function.Vue.use (vue.esm.js?65d7:4345)\r\n    at eval (main.js?3b76:34)\r\n    at Object.<anonymous> (renderer.js:1383)\r\n    at __webpack_require__ (renderer.js:661)\r\n    at fn (renderer.js:87)\r\n    at Object.<anonymous> (renderer.js:2500)\r\n    at __webpack_require__ (renderer.js:661)\r\n    at renderer.js:710\r\n    at renderer.js:713\r\nVue$3 @ /Users/fluency03/Workplace/github/dockeron/node_modules/blessed-vue/dist/build.js:4062\r\nVue.use @ vue.esm.js?65d7:4345\r\n(anonymous) @ main.js?3b76:34\r\n(anonymous) @ renderer.js:1383\r\n__webpack_require__ @ renderer.js:661\r\nfn @ renderer.js:87\r\n(anonymous) @ renderer.js:2500\r\n__webpack_require__ @ renderer.js:661\r\n(anonymous) @ renderer.js:710\r\n(anonymous) @ renderer.js:713\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/lyonlai/blessed-vue/issues/comments/326835402","html_url":"https://github.com/lyonlai/blessed-vue/issues/4#issuecomment-326835402","issue_url":"https://api.github.com/repos/lyonlai/blessed-vue/issues/4","id":326835402,"user":{"login":"lyonlai","id":1623058,"avatar_url":"https://avatars3.githubusercontent.com/u/1623058?v=4","gravatar_id":"","url":"https://api.github.com/users/lyonlai","html_url":"https://github.com/lyonlai","followers_url":"https://api.github.com/users/lyonlai/followers","following_url":"https://api.github.com/users/lyonlai/following{/other_user}","gists_url":"https://api.github.com/users/lyonlai/gists{/gist_id}","starred_url":"https://api.github.com/users/lyonlai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyonlai/subscriptions","organizations_url":"https://api.github.com/users/lyonlai/orgs","repos_url":"https://api.github.com/users/lyonlai/repos","events_url":"https://api.github.com/users/lyonlai/events{/privacy}","received_events_url":"https://api.github.com/users/lyonlai/received_events","type":"User","site_admin":false},"created_at":"2017-09-03T22:29:21Z","updated_at":"2017-09-03T22:29:21Z","author_association":"OWNER","body":"well, you can't do the combind and this repo doesn't work like a normal plugin so that you can't use Vue.use as others.\r\n\r\nThis is a runtime which means you need to use only `import Vue from 'blessed-vue'` and lay your components with it."}}
{"actor":{"display_login":"lyonlai"}}