{"action":"closed","issue":{"url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/42","repository_url":"https://api.github.com/repos/Meituan-Dianping/mpvue","labels_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/42/comments","events_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/42/events","html_url":"https://github.com/Meituan-Dianping/mpvue/issues/42","id":304238593,"number":42,"title":"mpvue使用ts-loader报错。","user":{"login":"ToyYan","id":508968,"avatar_url":"https://avatars1.githubusercontent.com/u/508968?v=4","gravatar_id":"","url":"https://api.github.com/users/ToyYan","html_url":"https://github.com/ToyYan","followers_url":"https://api.github.com/users/ToyYan/followers","following_url":"https://api.github.com/users/ToyYan/following{/other_user}","gists_url":"https://api.github.com/users/ToyYan/gists{/gist_id}","starred_url":"https://api.github.com/users/ToyYan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToyYan/subscriptions","organizations_url":"https://api.github.com/users/ToyYan/orgs","repos_url":"https://api.github.com/users/ToyYan/repos","events_url":"https://api.github.com/users/ToyYan/events{/privacy}","received_events_url":"https://api.github.com/users/ToyYan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-12T04:34:47Z","updated_at":"2018-03-21T13:08:18Z","closed_at":"2018-03-21T13:08:18Z","author_association":"NONE","body":"vue文件中使用\r\n<script lang=\"ts\" src=\"./index.ts\"></script>\r\n会报如下错误。\r\n\r\n` ERROR  Failed to compile with 1 errors                                                                                                                                                                                    12:28:56\r\n\r\n error  in ./src/pages/index/index.ts\r\n\r\nModule build failed: TypeError: Cannot read property 'afterCompile' of undefined\r\n    at successfulTypeScriptInstance (/Users/xxx/work/mpvueQuickStart/node_modules/ts-loader/dist/instances.js:147:28)\r\n    at Object.getTypeScriptInstance (/Users/xxx/work/mpvueQuickStart/node_modules/ts-loader/dist/instances.js:48:12)\r\n    at Object.loader (/Users/xxx/work/mpvueQuickStart/node_modules/ts-loader/dist/index.js:16:41)\r\n\r\n @ ./src/pages/index/index.vue 8:0-51\r\n @ ./src/pages/index/main.js`\r\n"}}
{"actor":{"display_login":"hucq"}}