{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/cli/issues/493","repository_url":"https://api.github.com/repos/aurelia/cli","labels_url":"https://api.github.com/repos/aurelia/cli/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/cli/issues/493/comments","events_url":"https://api.github.com/repos/aurelia/cli/issues/493/events","html_url":"https://github.com/aurelia/cli/issues/493","id":209681811,"number":493,"title":"Typescript error \"TS2307: Cannot find module '../aurelia.json'\" within build tasks","user":{"login":"suamikim","id":2870365,"avatar_url":"https://avatars.githubusercontent.com/u/2870365?v=3","gravatar_id":"","url":"https://api.github.com/users/suamikim","html_url":"https://github.com/suamikim","followers_url":"https://api.github.com/users/suamikim/followers","following_url":"https://api.github.com/users/suamikim/following{/other_user}","gists_url":"https://api.github.com/users/suamikim/gists{/gist_id}","starred_url":"https://api.github.com/users/suamikim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suamikim/subscriptions","organizations_url":"https://api.github.com/users/suamikim/orgs","repos_url":"https://api.github.com/users/suamikim/repos","events_url":"https://api.github.com/users/suamikim/events{/privacy}","received_events_url":"https://api.github.com/users/suamikim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-02-23T07:09:08Z","updated_at":"2017-02-26T00:16:50Z","closed_at":"2017-02-23T12:29:04Z","body":"**I'm submitting a bug report** (i guess)\r\n\r\n* **Library Version:**\r\n1.0.8\r\n\r\n\r\n**Please tell us about your environment:**\r\n* **Operating System:**\r\nWindows 10\r\n\r\n* **Node Version:**\r\n6.9.4\r\n\r\n* **NPM Version:**\r\n4.1.1\r\n\r\n* **Browser:**\r\nNot Browser related\r\n\r\n* **Language:**\r\nTypeScript 2.1.5\r\n\r\n\r\n* **Current behavior:**\r\nThe line `import * as project from '../aurelia.json';` inside the build tasks (`aurelia_project\\tasks\\build.ts`, `aurelia_project\\tasks\\process-css.ts` etc.) reports the TypeScript error `TS2307: Cannot find module '../aurelia.json'` even though the file `aurelia.json` exists in the folder `aurelia_project`.\r\n\r\n* **What is the expected behavior?**\r\nWhilst building etc. is actually working as expected, I find it annoying & misleading to see TypeScript errors in my IDE (files & folders are marked red, the TypeScript panel shows those erros etc.) and I guess it will bite me when starting create a deploy process.\r\n\r\nThis can be reproduced by creating a new project using `au new` with the following options (CLI version ``):\r\n* 3 Custom\r\n* 2 TypeScript\r\n* 3 Max minification\r\n* 3 Sass\r\n* 1 Yes (Unit Testing)\r\n* 4 WebStorm\r\n* 1 Yes (Create Project)\r\n* 1 Yes (Install Dependencies)\r\n\r\nThe errors are reported within `PhpStorm 2016.3.2` as well as `VSCode 1.8.1 & 1.9.1`\r\n\r\n**Ps.:** I'm not sure if this is related to https://github.com/aurelia/cli/issues/300 even though the title suggests otherwise since I believe that the issue there is about including JSON files within the source code, not within the build..."},"comment":{"url":"https://api.github.com/repos/aurelia/cli/issues/comments/282522516","html_url":"https://github.com/aurelia/cli/issues/493#issuecomment-282522516","issue_url":"https://api.github.com/repos/aurelia/cli/issues/493","id":282522516,"user":{"login":"sbolel","id":1915925,"avatar_url":"https://avatars.githubusercontent.com/u/1915925?v=3","gravatar_id":"","url":"https://api.github.com/users/sbolel","html_url":"https://github.com/sbolel","followers_url":"https://api.github.com/users/sbolel/followers","following_url":"https://api.github.com/users/sbolel/following{/other_user}","gists_url":"https://api.github.com/users/sbolel/gists{/gist_id}","starred_url":"https://api.github.com/users/sbolel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbolel/subscriptions","organizations_url":"https://api.github.com/users/sbolel/orgs","repos_url":"https://api.github.com/users/sbolel/repos","events_url":"https://api.github.com/users/sbolel/events{/privacy}","received_events_url":"https://api.github.com/users/sbolel/received_events","type":"User","site_admin":false},"created_at":"2017-02-26T00:16:50Z","updated_at":"2017-02-26T00:16:50Z","body":"This is not an issue on macOS. Even though my editor complains about not finding `../aurelia.json`, the build process works fine. I don't need the custom type definition either.\r\n\r\nI unfortunately do not have a copy of windows, so I'm not sure how to go about trying to dive further into this. It might be that the fixes in #499 may resolve this?\r\n\r\nAs for the editor/IDE warning, we could add `json.d.ts` to the `custom_typings` folder if necessary."}}
{"actor":{"display_login":"sbolel"}}