{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/webpack-encore/issues/417","repository_url":"https://api.github.com/repos/symfony/webpack-encore","labels_url":"https://api.github.com/repos/symfony/webpack-encore/issues/417/labels{/name}","comments_url":"https://api.github.com/repos/symfony/webpack-encore/issues/417/comments","events_url":"https://api.github.com/repos/symfony/webpack-encore/issues/417/events","html_url":"https://github.com/symfony/webpack-encore/issues/417","id":371868274,"node_id":"MDU6SXNzdWUzNzE4NjgyNzQ=","number":417,"title":"Typescript loader is complaining about empty files array","user":{"login":"iammichiel","id":1027369,"node_id":"MDQ6VXNlcjEwMjczNjk=","avatar_url":"https://avatars1.githubusercontent.com/u/1027369?v=4","gravatar_id":"","url":"https://api.github.com/users/iammichiel","html_url":"https://github.com/iammichiel","followers_url":"https://api.github.com/users/iammichiel/followers","following_url":"https://api.github.com/users/iammichiel/following{/other_user}","gists_url":"https://api.github.com/users/iammichiel/gists{/gist_id}","starred_url":"https://api.github.com/users/iammichiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iammichiel/subscriptions","organizations_url":"https://api.github.com/users/iammichiel/orgs","repos_url":"https://api.github.com/users/iammichiel/repos","events_url":"https://api.github.com/users/iammichiel/events{/privacy}","received_events_url":"https://api.github.com/users/iammichiel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T09:03:46Z","updated_at":"2018-10-19T09:47:36Z","closed_at":"2018-10-19T09:47:36Z","author_association":"NONE","body":"Hi, \r\n\r\nI am trying to use the Typescript loader. However, the documentation is scarce and I cannot get it to work. \r\n\r\nHere are the steps I have done so far : \r\n```\r\nyarn add ts-loader@^3.0 typescript\r\n```\r\n\r\nIn the `webpack.config.js` : \r\n```\r\n.addEntry('app', './assets/js/app.tsx')\r\n```\r\n\r\nAnd I have reduced my file ts file to the strict minimum with a simple `console.log`\r\nWhen I run `encore`, I get the following error : \r\n\r\n```\r\n  TS18002: The 'files' list in config file 'tsconfig.json' is empty.\r\n```\r\n\r\nDoes that mean I have to explicitly add each ts file I create into the `tsconfig.json` file? "},"comment":{"url":"https://api.github.com/repos/symfony/webpack-encore/issues/comments/431308486","html_url":"https://github.com/symfony/webpack-encore/issues/417#issuecomment-431308486","issue_url":"https://api.github.com/repos/symfony/webpack-encore/issues/417","id":431308486,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTMwODQ4Ng==","user":{"login":"iammichiel","id":1027369,"node_id":"MDQ6VXNlcjEwMjczNjk=","avatar_url":"https://avatars1.githubusercontent.com/u/1027369?v=4","gravatar_id":"","url":"https://api.github.com/users/iammichiel","html_url":"https://github.com/iammichiel","followers_url":"https://api.github.com/users/iammichiel/followers","following_url":"https://api.github.com/users/iammichiel/following{/other_user}","gists_url":"https://api.github.com/users/iammichiel/gists{/gist_id}","starred_url":"https://api.github.com/users/iammichiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iammichiel/subscriptions","organizations_url":"https://api.github.com/users/iammichiel/orgs","repos_url":"https://api.github.com/users/iammichiel/repos","events_url":"https://api.github.com/users/iammichiel/events{/privacy}","received_events_url":"https://api.github.com/users/iammichiel/received_events","type":"User","site_admin":false},"created_at":"2018-10-19T09:47:36Z","updated_at":"2018-10-19T09:47:36Z","author_association":"NONE","body":"And I have found out, you can use glbo expression in the tsconfig file as well. I'll open a PR on the symfony documentation to present a sample tsconfig file. "}}
{"actor":{"display_login":"iammichiel"}}