{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-loader/issues/109","repository_url":"https://api.github.com/repos/vuejs/vue-loader","labels_url":"https://api.github.com/repos/vuejs/vue-loader/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-loader/issues/109/comments","events_url":"https://api.github.com/repos/vuejs/vue-loader/issues/109/events","html_url":"https://github.com/vuejs/vue-loader/issues/109","id":123466990,"number":109,"title":"cant work with typescript","user":{"login":"tcstory","id":5856466,"avatar_url":"https://avatars.githubusercontent.com/u/5856466?v=3","gravatar_id":"","url":"https://api.github.com/users/tcstory","html_url":"https://github.com/tcstory","followers_url":"https://api.github.com/users/tcstory/followers","following_url":"https://api.github.com/users/tcstory/following{/other_user}","gists_url":"https://api.github.com/users/tcstory/gists{/gist_id}","starred_url":"https://api.github.com/users/tcstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcstory/subscriptions","organizations_url":"https://api.github.com/users/tcstory/orgs","repos_url":"https://api.github.com/users/tcstory/repos","events_url":"https://api.github.com/users/tcstory/events{/privacy}","received_events_url":"https://api.github.com/users/tcstory/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2015-12-22T11:46:46Z","updated_at":"2016-08-28T07:55:36Z","closed_at":null,"body":"structure of the project\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5856466/11954440/6d1203c8-a8e3-11e5-9bcf-637623293309.png)\r\n\r\nwebpack.config.js \r\n\r\n```\r\nmodule.exports = {\r\n    entry: './src/js/app.js',\r\n    output: {\r\n        path: 'dist/',\r\n        filename: './js/bundle.js'\r\n    },\r\n    module: {\r\n        loaders: [\r\n            {\r\n                test: /\\.tsx?$/,\r\n                loader: 'ts-loader'\r\n            },\r\n            {\r\n                test: /\\.vue$/,\r\n                loader: 'vue'\r\n            }\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\napp.ts\r\n\r\n```\r\ndeclare var require;\r\ndeclare var Vue;\r\n\r\nnew Vue({\r\n    el: 'body',\r\n    components: {\r\n        'nani': require('../components/nani.vue')\r\n    }\r\n})\r\n```\r\n\r\nnani.vue\r\n\r\n```\r\n<template><p>纳尼?你再说一次.</p></template>\r\n\r\n<script lang=\"ts\">\r\n    export = {\r\n        methods: {\r\n            sayHello: function () {\r\n                alert('hello')\r\n            }\r\n    }\r\n</script>\r\n```\r\n\r\neach time I run webpack, it always report this error,\r\n\r\n```\r\n$ webpack                                                                                                                     ‹ruby-2.1.4›\r\nts-loader: Using typescript@1.6.2\r\nHash: 54f28de48a69455dfb02\r\nVersion: webpack 1.12.9\r\nTime: 1239ms\r\n         Asset     Size  Chunks             Chunk Names\r\n./js/bundle.js  2.74 kB       0  [emitted]  main\r\n   [0] ./src/js/app.js 178 bytes {0} [built]\r\n    + 4 hidden modules\r\n\r\nERROR in ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/nani.vue\r\nModule build failed: Error: Could not find file: '/Users/tcstory/WebstormProjects/test/src/components/nani.vue'.\r\n    at getValidSourceFile (/Users/tcstory/WebstormProjects/test/node_modules/typescript/lib/typescript.js:43586:23)\r\n    at Object.getEmitOutput (/Users/tcstory/WebstormProjects/test/node_modules/typescript/lib/typescript.js:46680:30)\r\n    at Object.loader (/Users/tcstory/WebstormProjects/test/node_modules/ts-loader/index.js:410:34)\r\n @ ./src/components/nani.vue 2:17-111\r\n```\r\n\r\nhow to solve this problem?"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-loader/issues/comments/242961740","html_url":"https://github.com/vuejs/vue-loader/issues/109#issuecomment-242961740","issue_url":"https://api.github.com/repos/vuejs/vue-loader/issues/109","id":242961740,"user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T07:55:36Z","updated_at":"2016-08-28T07:55:36Z","body":"I see - would it not be better to have `vue-loader` generate a different extension for output files when the `language` is `\"typescript\"`?"}}
{"actor":{"display_login":"DanielRosenwasser"}}