{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-loader/issues/1337","repository_url":"https://api.github.com/repos/vuejs/vue-loader","labels_url":"https://api.github.com/repos/vuejs/vue-loader/issues/1337/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-loader/issues/1337/comments","events_url":"https://api.github.com/repos/vuejs/vue-loader/issues/1337/events","html_url":"https://github.com/vuejs/vue-loader/issues/1337","id":328734290,"node_id":"MDU6SXNzdWUzMjg3MzQyOTA=","number":1337,"title":"vue components use CommonJS 'module.exports'","user":{"login":"cench","id":12840843,"node_id":"MDQ6VXNlcjEyODQwODQz","avatar_url":"https://avatars3.githubusercontent.com/u/12840843?v=4","gravatar_id":"","url":"https://api.github.com/users/cench","html_url":"https://github.com/cench","followers_url":"https://api.github.com/users/cench/followers","following_url":"https://api.github.com/users/cench/following{/other_user}","gists_url":"https://api.github.com/users/cench/gists{/gist_id}","starred_url":"https://api.github.com/users/cench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cench/subscriptions","organizations_url":"https://api.github.com/users/cench/orgs","repos_url":"https://api.github.com/users/cench/repos","events_url":"https://api.github.com/users/cench/events{/privacy}","received_events_url":"https://api.github.com/users/cench/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-02T10:49:36Z","updated_at":"2018-06-02T11:11:40Z","closed_at":null,"author_association":"NONE","body":"### Version\r\n13.7.0\r\n\r\n### Steps to reproduce\r\nin vue component file, if i use the commonjs way to export\r\n```\r\n// error way\r\nmodule.export= {\r\n    name: 'component-name'\r\n}\r\n\r\n// normal write\r\nexport default {\r\n\r\n}\r\n```\r\n> Because of some historical writing\r\n\r\n\r\n### What is expected?\r\ncompile is ok.\r\n\r\n### What is actually happening?\r\nfind error\r\n\r\n---\r\n```\r\n21:2-16 \"export 'default' (imported as '__vue_script__') was not found in '!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./component-upload.vue'\r\n```\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-loader/issues/comments/394079188","html_url":"https://github.com/vuejs/vue-loader/issues/1337#issuecomment-394079188","issue_url":"https://api.github.com/repos/vuejs/vue-loader/issues/1337","id":394079188,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDA3OTE4OA==","user":{"login":"Justineo","id":1726061,"node_id":"MDQ6VXNlcjE3MjYwNjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1726061?v=4","gravatar_id":"","url":"https://api.github.com/users/Justineo","html_url":"https://github.com/Justineo","followers_url":"https://api.github.com/users/Justineo/followers","following_url":"https://api.github.com/users/Justineo/following{/other_user}","gists_url":"https://api.github.com/users/Justineo/gists{/gist_id}","starred_url":"https://api.github.com/users/Justineo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Justineo/subscriptions","organizations_url":"https://api.github.com/users/Justineo/orgs","repos_url":"https://api.github.com/users/Justineo/repos","events_url":"https://api.github.com/users/Justineo/events{/privacy}","received_events_url":"https://api.github.com/users/Justineo/received_events","type":"User","site_admin":false},"created_at":"2018-06-02T11:11:40Z","updated_at":"2018-06-02T11:11:40Z","author_association":"MEMBER","body":"It should be `module.exports` instead of `module.export`."}}
{"actor":{"display_login":"Justineo"}}