Title: Library with Typescript files fails to compile in AOT · Issue #6228 · angular/angular-cli · GitHub
Open Graph Title: Library with Typescript files fails to compile in AOT · Issue #6228 · angular/angular-cli
X Title: Library with Typescript files fails to compile in AOT · Issue #6228 · angular/angular-cli
Description: - [x] bug report - [ ] feature request Versions. node v6.10.0 npm v3.10.10 Windows 10 Repro steps. We have a shared component library in our node_modules. We use some, but not all, of the components in our actual app. In some cases, we u...
Open Graph Description: - [x] bug report - [ ] feature request Versions. node v6.10.0 npm v3.10.10 Windows 10 Repro steps. We have a shared component library in our node_modules. We use some, but not all, of the component...
X Description: - [x] bug report - [ ] feature request Versions. node v6.10.0 npm v3.10.10 Windows 10 Repro steps. We have a shared component library in our node_modules. We use some, but not all, of the component...
Opengraph URL: https://github.com/angular/angular-cli/issues/6228
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Library with Typescript files fails to compile in AOT","articleBody":"```\r\n- [x] bug report\r\n- [ ] feature request\r\n```\r\n### Versions.\r\nnode v6.10.0\r\nnpm v3.10.10\r\nWindows 10\r\n\r\n### Repro steps.\r\nWe have a shared component library in our node_modules. We use some, but not all, of the components in our actual app. In some cases, we use a component which has another component's selector string in its template, while overriding the component referenced. When we run AoT, the errors claim that the overridden component can not be found. However, the path logged is incorrect, which is probably why it cannot be found.\r\n\r\neg.\r\n`node_modules/@shared/angular/components/demo/template.html` is `\u003cother-component\u003e\u003cother-component\u003e`\r\n`src/components/other/component.ts` has some customized code\r\n\r\nIf we run AoT through @ngtools/webpack we get something like this:\r\n```\r\nERROR in C:/Repos/OURAPP/client/$$_gendir/node_modules/@shared/angular/components/demo/component.ngfactory.ts (29,27): Cannot find module '../../../../../../$_gendir/src/components/other/component.ngfactory'.\r\n```\r\n### Desired functionality.\r\nI'd expect it to resolve to the correct file. removing the `$$_gendir` from the second path makes it point to the correct file, so clearly there's just a path resolution error somewhere.","author":{"url":"https://github.com/localyost3000","@type":"Person","name":"localyost3000"},"datePublished":"2017-05-08T22:14:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/6228/angular-cli/issues/6228"}
| 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:cdeff605-7ae6-0877-2679-72caccd3bcd9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C48E:313CEF:8CDA58F:C078843:6973BDB2 |
| html-safe-nonce | 21123fe515ffbd746ca4d6eb809c3500a46541d556b5056274e12b6d89c1c631 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDhFOjMxM0NFRjo4Q0RBNThGOkMwNzg4NDM6Njk3M0JEQjIiLCJ2aXNpdG9yX2lkIjoiMzM3ODU0MzkzMjQ3ODgzMjA1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 703f2490bee1e63cf361e6634ead6701f9d017140a4251cfa5f96b5507d77d08 |
| hovercard-subject-tag | issue:227190945 |
| 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/6228/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e495987eb297b39f110eae498adfdc73e303794b0adc7dddbba834c826bcf61/angular/angular-cli/issues/6228 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e495987eb297b39f110eae498adfdc73e303794b0adc7dddbba834c826bcf61/angular/angular-cli/issues/6228 |
| og:image:alt | - [x] bug report - [ ] feature request Versions. node v6.10.0 npm v3.10.10 Windows 10 Repro steps. We have a shared component library in our node_modules. We use some, but not all, of the component... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | localyost3000 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a5768a9eafedc74cf703ff010fe962e646e4a535c2902a44121cb0383fa06f6 |
| 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 | 299568c301abffbdd27fc1309827c44836361f11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width