Title: tsconfig paths not respected · Issue #8117 · angular/angular-cli · GitHub
Open Graph Title: tsconfig paths not respected · Issue #8117 · angular/angular-cli
X Title: tsconfig paths not respected · Issue #8117 · 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.8 node: 8.7.0 os: linux x64 Repro steps. ng serve https://github.com/buu700/ngcli...
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.8 node: 8.7.0 os: linux x64 Repro steps. ...
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.8 node: 8.7.0 os: linux x64 Repro step...
Opengraph URL: https://github.com/angular/angular-cli/issues/8117
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsconfig paths not respected","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> 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-->\r\n```\r\n@angular/cli: 1.4.8\r\nnode: 8.7.0\r\nos: linux x64\r\n```\r\n\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-->\r\n1. `ng serve` https://github.com/buu700/ngcli-paths\r\n\r\n2. Either \"success\" or \"failure\" will be displayed.\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\ntsconfig paths should be treated as equivalent to `resolve.alias` values, as far as I understand. However, it seems that they're only applying to imports from within the Angular project itself, not third-party modules. (I'd thought that this worked in the past, so it may be a recent regression.)\r\n\r\nIn this example, we're importing a node module `test63987` that imports and re-exports an arbitrary second module (`libsodium-wrappers-sumo`). Setting `\"libsodium-wrappers-sumo\": [\"libsodium-replacement\"]` in tsconfig does not have the desired effect. However, ejecting and adding the equivalent `alias` to webpack.config.js does work as expected.\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. -->\r\n\r\nProject this affects is https://github.com/cyph/cyph.\r\n\r\n---\r\n\r\nEdit: **Workaround:** Install the latest Angular/CLI/etc. and replace `node_modules/@ngtools/webpack/src/paths-plugin.js` with https://github.com/buu700/ngtools-webpack-tmp/blob/master/src/paths-plugin.js.","author":{"url":"https://github.com/buu700","@type":"Person","name":"buu700"},"datePublished":"2017-10-19T17:44:55Z","url":"https://github.com/angular/angular-cli/issues/8117"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:dfe69d8b-5b87-f05e-6845-12b55d972ae4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C520:F7C4C:3592DF2:47B7F9B:6B0211F5 |
| html-safe-nonce | 11a45bf57ba90df8ddadf9639cd8d044bf4d6b68e3d309150bd1fcadb1746a0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTIwOkY3QzRDOjM1OTJERjI6NDdCN0Y5Qjo2QjAyMTFGNSIsInZpc2l0b3JfaWQiOiI1NzU1MDQ0NDgzNzkyMjQ1MjM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 37a1b7dd247b11420fe57e32f2c25c7a84190fd00a0412a135ca2f0659eb6c0f |
| hovercard-subject-tag | issue:266929800 |
| 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/8117/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c24d063d65a6757fa72942fc7f5ad562e68a1635ec38a67332ee4659f5fd52b/angular/angular-cli/issues/8117 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c24d063d65a6757fa72942fc7f5ad562e68a1635ec38a67332ee4659f5fd52b/angular/angular-cli/issues/8117 |
| 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.8 node: 8.7.0 os: linux x64 Repro steps. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | buu700 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width