{"action":"created","issue":{"url":"https://api.github.com/repos/nestjs/nest/issues/1242","repository_url":"https://api.github.com/repos/nestjs/nest","labels_url":"https://api.github.com/repos/nestjs/nest/issues/1242/labels{/name}","comments_url":"https://api.github.com/repos/nestjs/nest/issues/1242/comments","events_url":"https://api.github.com/repos/nestjs/nest/issues/1242/events","html_url":"https://github.com/nestjs/nest/issues/1242","id":374652690,"node_id":"MDU6SXNzdWUzNzQ2NTI2OTA=","number":1242,"title":"Path resolution is strange","user":{"login":"victorschinaider","id":16581931,"node_id":"MDQ6VXNlcjE2NTgxOTMx","avatar_url":"https://avatars3.githubusercontent.com/u/16581931?v=4","gravatar_id":"","url":"https://api.github.com/users/victorschinaider","html_url":"https://github.com/victorschinaider","followers_url":"https://api.github.com/users/victorschinaider/followers","following_url":"https://api.github.com/users/victorschinaider/following{/other_user}","gists_url":"https://api.github.com/users/victorschinaider/gists{/gist_id}","starred_url":"https://api.github.com/users/victorschinaider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorschinaider/subscriptions","organizations_url":"https://api.github.com/users/victorschinaider/orgs","repos_url":"https://api.github.com/users/victorschinaider/repos","events_url":"https://api.github.com/users/victorschinaider/events{/privacy}","received_events_url":"https://api.github.com/users/victorschinaider/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-27T14:45:07Z","updated_at":"2018-10-27T15:40:12Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n<!-- \r\nPlease search GitHub for a similar issue or PR before submitting.\r\nCheck one of the following options with \"x\" -->\r\n<pre><code>\r\n[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->\r\n[x] Bug report\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.\r\n</code></pre>\r\n\r\n## Current behavior\r\n<!-- Describe how the issue manifests. -->\r\n\r\nWhen i'm importing something relative, the autoimport IDE is giving paths like this: `'modules/base/file-a.ts'`.\r\n\r\n## Expected behavior\r\n<!-- Describe what the desired behavior would be. -->\r\nBut, i think that IDE should give me paths like this: `'./modules/base/file-a.ts'`, like others frameworks does, like `Angular` ( inspiration of this framework ).\r\n\r\n\r\n## Minimal reproduction of the problem with instructions\r\n<!-- Please share a repo, a gist, or step-by-step instructions. -->\r\n\r\nJust open a `NestJs` project in VsCode and autoimport relative files.\r\n\r\n## What is the motivation / use case for changing the behavior?\r\n<!-- Describe the motivation or the concrete use case. -->\r\n\r\nFirst, there was other issue talking about this, but guys said it's not a problem with NestJs, but i think it is. Why? Because if i create a project of Angular from CLI, the standard is to give paths relatives like i said, i do not have to modify files to work like i expect.\r\n\r\nSecond, i have tried to modify `tsconfig` options (module, module resolution) but nothing is fixing the problem, so i don't know what we have to do to fix this.\r\n\r\n## Environment\r\n\r\n<pre><code>\r\nNest version: latest\r\n<!-- Check whether this is still an issue in the most recent Nest version -->\r\n \r\nFor Tooling issues:\r\n- Node version: lts - 11.0  <!-- run `node --version` -->\r\n- Platform:  Linux\r\n- VsCode\r\n</code></pre>\r\n"},"comment":{"url":"https://api.github.com/repos/nestjs/nest/issues/comments/433631122","html_url":"https://github.com/nestjs/nest/issues/1242#issuecomment-433631122","issue_url":"https://api.github.com/repos/nestjs/nest/issues/1242","id":433631122,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzYzMTEyMg==","user":{"login":"barretojs","id":43803300,"node_id":"MDQ6VXNlcjQzODAzMzAw","avatar_url":"https://avatars0.githubusercontent.com/u/43803300?v=4","gravatar_id":"","url":"https://api.github.com/users/barretojs","html_url":"https://github.com/barretojs","followers_url":"https://api.github.com/users/barretojs/followers","following_url":"https://api.github.com/users/barretojs/following{/other_user}","gists_url":"https://api.github.com/users/barretojs/gists{/gist_id}","starred_url":"https://api.github.com/users/barretojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barretojs/subscriptions","organizations_url":"https://api.github.com/users/barretojs/orgs","repos_url":"https://api.github.com/users/barretojs/repos","events_url":"https://api.github.com/users/barretojs/events{/privacy}","received_events_url":"https://api.github.com/users/barretojs/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T15:40:12Z","updated_at":"2018-10-27T15:40:12Z","author_association":"NONE","body":"Are you using the nest-cli? Maybe it has something to do with the include\nproperty from the tsconfig. I'm not at my computer at the moment, so I\ncan't say for sure...\n\nEm sáb, 27 de out de 2018 12:32, Victor Schinaider <notifications@github.com>\nescreveu:\n\n> I just realize that when i define importModuleSpecifier as relative, i\n> lost paths configuration of tsconfig. And typescript configuration of\n> Angular is not too much different:\n>\n> {\n>   \"compileOnSave\": false,\n>   \"compilerOptions\": {\n>     \"baseUrl\": \"./\",\n>     \"outDir\": \"./dist/out-tsc\",\n>     \"sourceMap\": true,\n>     \"declaration\": false,\n>     \"moduleResolution\": \"node\",\n>     \"emitDecoratorMetadata\": true,\n>     \"experimentalDecorators\": true,\n>     \"target\": \"es5\",\n>     \"typeRoots\": [\n>       \"node_modules/@types\"\n>     ],\n>     \"lib\": [\n>       \"es2017\",\n>       \"dom\"\n>     ]\n>   }\n> }\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/nestjs/nest/issues/1242#issuecomment-433630557>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/ApxipKjVdn0nB4Q2XbRRAAXyNsgDk1Qfks5upHyJgaJpZM4X9d55>\n> .\n>\n"}}
{"actor":{"display_login":"barretojs"}}