{"action":"created","issue":{"url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/252","repository_url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader","labels_url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/252/comments","events_url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/252/events","html_url":"https://github.com/s-panferov/awesome-typescript-loader/issues/252","id":182815293,"number":252,"title":"`Cannot find name 'require'.` when specifying tsconfig path.","user":{"login":"vidartf","id":510760,"avatar_url":"https://avatars.githubusercontent.com/u/510760?v=3","gravatar_id":"","url":"https://api.github.com/users/vidartf","html_url":"https://github.com/vidartf","followers_url":"https://api.github.com/users/vidartf/followers","following_url":"https://api.github.com/users/vidartf/following{/other_user}","gists_url":"https://api.github.com/users/vidartf/gists{/gist_id}","starred_url":"https://api.github.com/users/vidartf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidartf/subscriptions","organizations_url":"https://api.github.com/users/vidartf/orgs","repos_url":"https://api.github.com/users/vidartf/repos","events_url":"https://api.github.com/users/vidartf/events{/privacy}","received_events_url":"https://api.github.com/users/vidartf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-13T15:03:13Z","updated_at":"2016-10-23T10:52:04Z","closed_at":null,"body":"When using ATL in a minimal webpack setup, with a file `data.json` (content e.g. `[1,2,3]`) the TS code:\r\n```ts\r\nconst data = require('./data.json') as number[];\r\n```\r\nwill normally compile correctly, unless you specify \r\n```js\r\nquery: {\r\n  tsconfig: './tsconfig.json'\r\n}\r\n```\r\nin the ATL loader configuration in the webpack config. If this configuration is present, the compilation fails with the error:\r\n```\r\nERROR in [default] <path-to-TS-file>:1:13\r\nCannot find name 'require'.\r\n```"},"comment":{"url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/comments/255581937","html_url":"https://github.com/s-panferov/awesome-typescript-loader/issues/252#issuecomment-255581937","issue_url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/252","id":255581937,"user":{"login":"vidartf","id":510760,"avatar_url":"https://avatars.githubusercontent.com/u/510760?v=3","gravatar_id":"","url":"https://api.github.com/users/vidartf","html_url":"https://github.com/vidartf","followers_url":"https://api.github.com/users/vidartf/followers","following_url":"https://api.github.com/users/vidartf/following{/other_user}","gists_url":"https://api.github.com/users/vidartf/gists{/gist_id}","starred_url":"https://api.github.com/users/vidartf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidartf/subscriptions","organizations_url":"https://api.github.com/users/vidartf/orgs","repos_url":"https://api.github.com/users/vidartf/repos","events_url":"https://api.github.com/users/vidartf/events{/privacy}","received_events_url":"https://api.github.com/users/vidartf/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T10:52:04Z","updated_at":"2016-10-23T10:52:04Z","body":"I'd love to have a proper solution though, as the dummy might be confusing to others :-1: "}}
{"actor":{"display_login":"vidartf"}}