{"action":"created","issue":{"url":"https://api.github.com/repos/fex-team/fis3-hook-node_modules/issues/50","repository_url":"https://api.github.com/repos/fex-team/fis3-hook-node_modules","labels_url":"https://api.github.com/repos/fex-team/fis3-hook-node_modules/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/fis3-hook-node_modules/issues/50/comments","events_url":"https://api.github.com/repos/fex-team/fis3-hook-node_modules/issues/50/events","html_url":"https://github.com/fex-team/fis3-hook-node_modules/issues/50","id":179155309,"number":50,"title":"[不知道该不该提在这里]加载Vue时报错","user":{"login":"fancyboynet","id":1636927,"avatar_url":"https://avatars.githubusercontent.com/u/1636927?v=3","gravatar_id":"","url":"https://api.github.com/users/fancyboynet","html_url":"https://github.com/fancyboynet","followers_url":"https://api.github.com/users/fancyboynet/followers","following_url":"https://api.github.com/users/fancyboynet/following{/other_user}","gists_url":"https://api.github.com/users/fancyboynet/gists{/gist_id}","starred_url":"https://api.github.com/users/fancyboynet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancyboynet/subscriptions","organizations_url":"https://api.github.com/users/fancyboynet/orgs","repos_url":"https://api.github.com/users/fancyboynet/repos","events_url":"https://api.github.com/users/fancyboynet/events{/privacy}","received_events_url":"https://api.github.com/users/fancyboynet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-26T07:17:23Z","updated_at":"2016-10-25T09:09:11Z","closed_at":"2016-10-25T09:09:11Z","body":"期望调用方式\r\n----\r\n```\r\nvar Vue = require('vue');\r\n```\r\n结果报错\r\n----\r\n```\r\nvue.common.js:2539 [Vue warn]: Failed to mount component: template or render function not defined. (found in root instance)\r\n```\r\n问题分析\r\n----\r\nVue默认指向的是 `dist/vue.common.js`文件,而vue.common.js没有进行umd包装\r\n```\r\n{\r\n    \"main\": \"dist/vue.common.js\",\r\n}\r\n```\r\n目前解决方法,显示引入 `dist/vue.js`\r\n----\r\n```\r\nvar Vue = require('/node_modules/vue/dist/vue.js');\r\n```\r\n\r\n有其他推荐的解决方案吗？\r\n----\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fex-team/fis3-hook-node_modules/issues/comments/255980188","html_url":"https://github.com/fex-team/fis3-hook-node_modules/issues/50#issuecomment-255980188","issue_url":"https://api.github.com/repos/fex-team/fis3-hook-node_modules/issues/50","id":255980188,"user":{"login":"fancyboynet","id":1636927,"avatar_url":"https://avatars.githubusercontent.com/u/1636927?v=3","gravatar_id":"","url":"https://api.github.com/users/fancyboynet","html_url":"https://github.com/fancyboynet","followers_url":"https://api.github.com/users/fancyboynet/followers","following_url":"https://api.github.com/users/fancyboynet/following{/other_user}","gists_url":"https://api.github.com/users/fancyboynet/gists{/gist_id}","starred_url":"https://api.github.com/users/fancyboynet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancyboynet/subscriptions","organizations_url":"https://api.github.com/users/fancyboynet/orgs","repos_url":"https://api.github.com/users/fancyboynet/repos","events_url":"https://api.github.com/users/fancyboynet/events{/privacy}","received_events_url":"https://api.github.com/users/fancyboynet/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T09:09:11Z","updated_at":"2016-10-25T09:09:11Z","body":"@xxapp 谢啦"}}
{"actor":{"display_login":"fancyboynet"}}