Title: tsconfig paths and module resolution errors in VS Code · Issue #8138 · angular/angular-cli · GitHub
Open Graph Title: tsconfig paths and module resolution errors in VS Code · Issue #8138 · angular/angular-cli
X Title: tsconfig paths and module resolution errors in VS Code · Issue #8138 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.9 node: 7.9.0 os: darwin x64 @angular/animations: 4.4.5 @angular/common: 4.4.5 @a...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.9 node: 7.9.0 os: darwin x64 @angular/ani...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.9 node: 7.9.0 os: darwin x64 @angular/...
Opengraph URL: https://github.com/angular/angular-cli/issues/8138
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsconfig paths and module resolution errors in VS Code","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n--\u003e\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -\u003e please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n\u003c!--\r\nOutput from: `ng --version`.\r\nIf nothing, output from: `node --version` and `npm --version`.\r\n Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)\r\n--\u003e\r\n\r\n\u003e @angular/cli: 1.4.9\r\nnode: 7.9.0\r\nos: darwin x64\r\n@angular/animations: 4.4.5\r\n@angular/common: 4.4.5\r\n@angular/compiler: 4.4.5\r\n@angular/core: 4.4.5\r\n@angular/forms: 4.4.5\r\n@angular/http: 4.4.5\r\n@angular/platform-browser: 4.4.5\r\n@angular/platform-browser-dynamic: 4.4.5\r\n@angular/router: 4.4.5\r\n@angular/cli: 1.4.9\r\n@angular/compiler-cli: 4.4.5\r\ntypescript: 2.3.4\r\n\r\nmacOS Sierra 10.12.6\r\nVS Code 1.17.2\r\n### Repro steps.\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n--\u003e\r\nMy tsconfig path property seems broken.\r\nWhen I replace my path mapped imports (@shared, @assets etc.) with the equivalent coded relative paths, typescript module resolution seems to work (vs code intellisense is happy)\r\nI have a large angular 2 project and am used to aliasing my asset and shared directories this way.\r\nNOTE: project builds and (seems) to run just fine\r\nThis has been reported often, but I can't make sense of the current state of this issue.\r\nThis more than annoying as VS Code reports Angular spurious errors on all of my components.\r\nI also suspect this is why I get the infamous Can't read property isSkipSelf of null when I open my templates (html) in VS Code.\r\nI was running 1.4.2 and just tried ~1.4.2, which resolves to 1.4.9 in my package.json, to no avail.\r\nWill 1.5.x fix this?\r\nHow can I help debug this without providing a copy of my app?\r\n\r\nThanks in advance. Regards.\r\n\r\n### The log given by the failure.\r\n\u003c!-- Normally this include a stack trace and some more information. --\u003e\r\n\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n--\u003e\r\n\r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. --\u003e\r\n\r\n","author":{"url":"https://github.com/SpiraMira","@type":"Person","name":"SpiraMira"},"datePublished":"2017-10-21T08:10:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":42},"url":"https://github.com/8138/angular-cli/issues/8138"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a10bb741-6035-7013-a89b-89cf233d41dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9592:194F15:34E6805:48E54E8:696502B0 |
| html-safe-nonce | 55022c3dd5ab0db3ec32b2d0eb7e9f463fe9060a05a869ab41420e7cf86b154f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTkyOjE5NEYxNTozNEU2ODA1OjQ4RTU0RTg6Njk2NTAyQjAiLCJ2aXNpdG9yX2lkIjoiNjY0MTE1MTAzNjQxNzcwNDYyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 38ddd042623bff2292cee1c2c20bb3b44903c4256518db6afaf9a8c19499db4b |
| hovercard-subject-tag | issue:267361011 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/8138/issue_layout |
| twitter:image | https://opengraph.githubassets.com/005e3fe3b216d886ef017e596c1152e1ab28b7d1ca9927c34c5fb8320589ce7f/angular/angular-cli/issues/8138 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/005e3fe3b216d886ef017e596c1152e1ab28b7d1ca9927c34c5fb8320589ce7f/angular/angular-cli/issues/8138 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.9 node: 7.9.0 os: darwin x64 @angular/ani... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SpiraMira |
| hostname | github.com |
| expected-hostname | github.com |
| None | 409eef8307c7b2774ef22b51d9c9bea7aae00b7c42378f10825b0de95e35b3d8 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f2726e2829a4524ee45b32f55dabe51189d33b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width