Title: Dynamic component not working on prod mode with Ivy enabled · Issue #19321 · angular/angular-cli · GitHub
Open Graph Title: Dynamic component not working on prod mode with Ivy enabled · Issue #19321 · angular/angular-cli
X Title: Dynamic component not working on prod mode with Ivy enabled · Issue #19321 · angular/angular-cli
Description: Hi, Thank you for your help ! The issue is caused by package @angular/common and @angular/core Is this a regression? Yes, it doesn't work with ivy compilation but works with View Engine Description of the problem: When creating a dynamic...
Open Graph Description: Hi, Thank you for your help ! The issue is caused by package @angular/common and @angular/core Is this a regression? Yes, it doesn't work with ivy compilation but works with View Engine Description...
X Description: Hi, Thank you for your help ! The issue is caused by package @angular/common and @angular/core Is this a regression? Yes, it doesn't work with ivy compilation but works with View Engine Descrip...
Opengraph URL: https://github.com/angular/angular-cli/issues/19321
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dynamic component not working on prod mode with Ivy enabled","articleBody":"Hi,\r\nThank you for your help !\r\n\r\n\r\n The issue is caused by package @angular/common and @angular/core\r\n\r\n## Is this a regression?\r\n Yes, it doesn't work with ivy compilation but works with View Engine\r\n\r\n## Description of the problem:\r\nWhen creating a dynamic component to load html at runtime, the *ngIf, *ngFor, etc... directives and all components of the commonModule are not loaded whereas we have imported the commonModule in the dynamically loaded module.\r\nActually, all the imports are ignored. \r\n**This happens only in production mode** when building in dev mode there is no issue.\r\nAlso , it is working with Ivy disabled even in prod mode. \r\n\r\nso to summarized \r\n\r\ndev mode and ivy enabled : it works\r\nprod mode and ivy enabled : it DOESN'T work\r\n\r\ndev mode and ivy disabled: it works\r\nprod mode and ivy disabled: it works\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nhere is a repo with the problem describe: \r\nhttps://github.com/vincent-seibus/angular10-dynamic-components\r\n\r\n## 🌍 Environment\r\n\r\nYour global Angular CLI version (10.1.4) is greater than your local\r\nversion (10.0.3). The local Angular CLI version is used.\r\n\r\nTo disable this warning use \"ng config -g cli.warnings.versionMismatch false\".\r\n\r\n _ _ ____ _ ___\r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\r\n /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n \r\n\r\nAngular CLI: 10.0.3\r\nNode: 12.17.0\r\nOS: win32 x64\r\n\r\nAngular: 10.0.4\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\nIvy Workspace: \u003cerror>\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.1000.3\r\n@angular-devkit/build-angular 0.1000.3\r\n@angular-devkit/build-optimizer 0.1000.3\r\n@angular-devkit/build-webpack 0.1000.3\r\n@angular-devkit/core 10.0.3\r\n@angular-devkit/schematics 10.0.3\r\n@angular/cli 10.0.3\r\n@ngtools/webpack 10.0.3\r\n@schematics/angular 10.0.3\r\n@schematics/update 0.1000.3\r\nrxjs 6.6.0\r\ntypescript 3.9.7\r\nwebpack 4.43.0\r\n","author":{"url":"https://github.com/vincent-seibus","@type":"Person","name":"vincent-seibus"},"datePublished":"2020-11-08T15:42:43Z","url":"https://github.com/angular/angular-cli/issues/19321"}
| 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:2afa1225-e8ee-cdde-3c27-44fa16370576 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9CC:38E318:3A12B9:491303:6B01063D |
| html-safe-nonce | 1db5c055fc0f2a4cff6660890d16be6e08c1eaac28e646739e447c4c5433bae5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUNDOjM4RTMxODozQTEyQjk6NDkxMzAzOjZCMDEwNjNEIiwidmlzaXRvcl9pZCI6Ijg1ODc5MjA5NTQyMTMwNzQ0OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4af5b170f071e882ed86a422a8ea10e98be0abfa20d4cbaeab10bbcba73fd362 |
| hovercard-subject-tag | issue:738501325 |
| 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/19321/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9e8b1f445e6edeb147696ddb94f42fbb58e683c479706c71dce0f93efcbfd005/angular/angular-cli/issues/19321 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9e8b1f445e6edeb147696ddb94f42fbb58e683c479706c71dce0f93efcbfd005/angular/angular-cli/issues/19321 |
| og:image:alt | Hi, Thank you for your help ! The issue is caused by package @angular/common and @angular/core Is this a regression? Yes, it doesn't work with ivy compilation but works with View Engine Description... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vincent-seibus |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width