{"action":"created","issue":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/229","repository_url":"https://api.github.com/repos/parcel-bundler/parcel","labels_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/229/comments","events_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/229/events","html_url":"https://github.com/parcel-bundler/parcel/issues/229","id":281263712,"number":229,"title":"I tried to build a vue project with parcel and now fails……or said, I got some error","user":{"login":"wqcstrong","id":23474513,"avatar_url":"https://avatars1.githubusercontent.com/u/23474513?v=4","gravatar_id":"","url":"https://api.github.com/users/wqcstrong","html_url":"https://github.com/wqcstrong","followers_url":"https://api.github.com/users/wqcstrong/followers","following_url":"https://api.github.com/users/wqcstrong/following{/other_user}","gists_url":"https://api.github.com/users/wqcstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/wqcstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wqcstrong/subscriptions","organizations_url":"https://api.github.com/users/wqcstrong/orgs","repos_url":"https://api.github.com/users/wqcstrong/repos","events_url":"https://api.github.com/users/wqcstrong/events{/privacy}","received_events_url":"https://api.github.com/users/wqcstrong/received_events","type":"User","site_admin":false},"labels":[{"id":663703613,"url":"https://api.github.com/repos/parcel-bundler/parcel/labels/%23Question","name":"#Question","color":"0000ff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-12-12T05:34:59Z","updated_at":"2017-12-13T03:41:46Z","closed_at":null,"author_association":"NONE","body":"I just tried to build a vue project and set the directory structure to be similar to the vue-cli generated project. And I got some error after just used vue-router function.\r\nThe error is:\r\n```\r\n[vue-router] route config \"component\" for path: / cannot be a string id. Use an actual component instead.\r\n```\r\nFollowing is my directory structure :\r\n```\r\n- Parcel\r\n   - node_modules\r\n   - src\r\n      - components\r\n         - Index.vue\r\n      - router\r\n         - index.js\r\n      - App.vue\r\n      - main.js\r\n   - index.html\r\n   - package.json\r\n```\r\nIn order to see more clearly, I wrote out part of the source code demo:\r\n- index.html :\r\n```\r\n<body>\r\n    <div id=\"app\"></div>\r\n    <script src=\"./src/main.js\"></script>\r\n</body>\r\n```\r\n- src/main.js\r\n```\r\nimport Vue from 'vue'\r\nimport router from './router/index.js'\r\nimport App from './App.vue'\r\n\r\nVue.config.productionTip = false\r\nnew Vue({\r\n    el: \"#app\",\r\n    router,\r\n    template: '<App/>',\r\n    components: { App }\r\n})\r\n```\r\n- src/App.vue:\r\n```\r\n<template>\r\n    <div id=\"app\">\r\n        <h1>App Page</h1>\r\n        <router-view></router-view>\r\n    </div>\r\n</template>\r\n```\r\n- router/index.js\r\n```\r\nimport Vue from 'vue'\r\nimport Router from 'vue-router'\r\nimport Index from '../components/Index.vue'\r\n\r\nVue.use(Router);\r\nexport default new Router({\r\n    routes: [\r\n        {\r\n            path: '/',\r\n            component: Index\r\n        }\r\n    ]\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/comments/351273415","html_url":"https://github.com/parcel-bundler/parcel/issues/229#issuecomment-351273415","issue_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/229","id":351273415,"user":{"login":"trustgig","id":34412399,"avatar_url":"https://avatars2.githubusercontent.com/u/34412399?v=4","gravatar_id":"","url":"https://api.github.com/users/trustgig","html_url":"https://github.com/trustgig","followers_url":"https://api.github.com/users/trustgig/followers","following_url":"https://api.github.com/users/trustgig/following{/other_user}","gists_url":"https://api.github.com/users/trustgig/gists{/gist_id}","starred_url":"https://api.github.com/users/trustgig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trustgig/subscriptions","organizations_url":"https://api.github.com/users/trustgig/orgs","repos_url":"https://api.github.com/users/trustgig/repos","events_url":"https://api.github.com/users/trustgig/events{/privacy}","received_events_url":"https://api.github.com/users/trustgig/received_events","type":"User","site_admin":false},"created_at":"2017-12-13T03:41:46Z","updated_at":"2017-12-13T03:41:46Z","author_association":"NONE","body":"Thank you."}}
{"actor":{"display_login":"trustgig"}}