René's URL Explorer Experiment


Title: JIT compiler and dynamic template component issue after angular 13 upgrade · Issue #22570 · angular/angular-cli · GitHub

Open Graph Title: JIT compiler and dynamic template component issue after angular 13 upgrade · Issue #22570 · angular/angular-cli

X Title: JIT compiler and dynamic template component issue after angular 13 upgrade · Issue #22570 · angular/angular-cli

Description: Which @angular/* package(s) are the source of the bug? common, compiler, core Is this a regression? Yes Description Due to business reasons, we need to have the ability of loading and executing angular code dynamically in the application...

Open Graph Description: Which @angular/* package(s) are the source of the bug? common, compiler, core Is this a regression? Yes Description Due to business reasons, we need to have the ability of loading and executing ang...

X Description: Which @angular/* package(s) are the source of the bug? common, compiler, core Is this a regression? Yes Description Due to business reasons, we need to have the ability of loading and executing ang...

Opengraph URL: https://github.com/angular/angular-cli/issues/22570

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JIT compiler and dynamic template component issue after angular 13 upgrade","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncommon, compiler, core\n\n### Is this a regression?\n\nYes\n\n### Description\n\nDue to business reasons, we need to have the ability of loading and executing angular code dynamically in the application, the dynamic component template comes from an API call.\r\n\r\nAfter upgrading from angular 12 to angular 13 our implemented solution for dynamic components is no longer working. Updating our codebase to avoid using the deprecated ViewEngine didn't help, we get the same errors.\r\n\r\nCan't get my head around specially as to why things like the ngIf directive is not recognized anymore.\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n```true\nNG0304: 'swiper' is not a known element:\r\n1. If 'swiper' is an Angular component, then verify that it is part of this module.\r\n2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.\r\ncore.mjs:10119 NG0303: Can't bind to 'autoplay' since it isn't a known property of 'swiper'.\r\ncore.mjs:10119 NG0303: Can't bind to 'effect' since it isn't a known property of 'swiper'.\r\ncore.mjs:10119 NG0303: Can't bind to 'grabCursor' since it isn't a known property of 'swiper'.\r\ncore.mjs:10119 NG0303: Can't bind to 'loop' since it isn't a known property of 'swiper'.\r\ncore.mjs:10119 NG0303: Can't bind to 'pagination' since it isn't a known property of 'swiper'.\r\ncore.mjs:10119 NG0303: Can't bind to 'slidesPerView' since it isn't a known property of 'swiper'.\r\ncore.mjs:10119 NG0303: Can't bind to 'spaceBetween' since it isn't a known property of 'swiper'.\r\ncore.mjs:10119 NG0303: Can't bind to 'speed' since it isn't a known property of 'swiper'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'null'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'null'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'p'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'p'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'a'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'a'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'a'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'a'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'div'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'div'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'div'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'div'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'div'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'div'.\r\ncore.mjs:10119 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'div'.\n```\n\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 13.1.4\r\nNode: 12.22.5\r\nPackage Manager: npm 6.14.14\r\nOS: win32 x64\r\n\r\nAngular: 13.1.3\r\n... animations, cdk, common, compiler, compiler-cli, core, forms\r\n... language-service, material, platform-browser\r\n... platform-browser-dynamic, platform-server, router\r\n\r\nPackage                         Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect       0.1301.4\r\n@angular-devkit/build-angular   13.1.4\r\n@angular-devkit/core            13.1.4\r\n@angular-devkit/schematics      12.0.4\r\n@angular/cli                    13.1.4\r\n@angular/google-maps            12.2.13\r\n@nguniversal/builders           13.0.2\r\n@nguniversal/express-engine     12.1.3\r\n@schematics/angular             12.0.4\r\nrxjs                            6.6.7\r\ntypescript                      4.5.5\n```\n\n\n### Anything else?\n\nThis is esentially how we're doing the whole process after the ViewEngine deprecation:\r\n\r\n      createDynamicComponent() {\r\n          const component = this.createComponent();\r\n          const module = this.createModule(component);\r\n          this.componentRef = this.container.createComponent(component, { ngModuleRef: module });\r\n      }\r\n      \r\n      createComponent(): Type\u003cany> {\r\n          const self = this;\r\n          const metadata = new Component({\r\n              selector: 'dynamic',\r\n              template: this.template,\r\n          });\r\n          const componentClass = class DynamicComponent implements OnInit, OnDestroy {\r\n              constructor() {\r\n                  SwiperCore.use([Autoplay, Pagination]);\r\n              }\r\n              \r\n              ngOnInit() {}\r\n      \r\n              ngOnDestroy() {}\r\n          };\r\n                  \r\n          // Class constructor parameters\r\n          (componentClass as any).ctorParameters = () => [];\r\n          \r\n          return Component(metadata)(componentClass);\r\n      }\r\n      \r\n      createModule(decoratedComponent: Type\u003cany>): NgModuleRef\u003cany> {\r\n          const moduleClass = class RuntimeComponentModule {};\r\n          const decoratedNgModule = NgModule({\r\n              imports: [CommonModule, RouterModule, SharedModule],\r\n              jit: true,\r\n              declarations: [decoratedComponent],\r\n          })(moduleClass);\r\n          \r\n          return createNgModuleRef(decoratedNgModule, this.injector);\r\n      }\r\n\r\nHere the SharedModule exports common things like SwiperModule, Material modules and so on.","author":{"url":"https://github.com/manuelbve","@type":"Person","name":"manuelbve"},"datePublished":"2022-01-25T09:30:57Z","url":"https://github.com/angular/angular-cli/issues/22570"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e728e6b8-5418-78bd-1f3b-2e25b96f6705
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD980:14ECB:10D021C:15619C3:6B011649
html-safe-noncee642e445db0aef12dfc2515401c2816e5bc3544a0b62ee0f3cb876a68636f59b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTgwOjE0RUNCOjEwRDAyMUM6MTU2MTlDMzo2QjAxMTY0OSIsInZpc2l0b3JfaWQiOiI2NDk5ODIyNTgyMDY0Mjg5MzUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac13018b2b42470c9a15956d4e9ebdb89dbe96c584c11208bc858c5e3606cbd73f
hovercard-subject-tagissue:1113779103
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/22570/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e51e77082e9e1ea995a2dd40cf5e48af1a2a3fad87bc355717a21d69c0304ad9/angular/angular-cli/issues/22570
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e51e77082e9e1ea995a2dd40cf5e48af1a2a3fad87bc355717a21d69c0304ad9/angular/angular-cli/issues/22570
og:image:altWhich @angular/* package(s) are the source of the bug? common, compiler, core Is this a regression? Yes Description Due to business reasons, we need to have the ability of loading and executing ang...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemanuelbve
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/22570#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F22570
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F22570
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/22570
Reloadhttps://github.com/angular/angular-cli/issues/22570
Reloadhttps://github.com/angular/angular-cli/issues/22570
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/22570
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/22570
JIT compiler and dynamic template component issue after angular 13 upgradehttps://github.com/angular/angular-cli/issues/22570#top
https://github.com/alan-agius4
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
https://github.com/manuelbve
manuelbvehttps://github.com/manuelbve
on Jan 25, 2022https://github.com/angular/angular-cli/issues/22570#issue-1113779103
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Jan 25, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1021032898
https://github.com/manuelbve
manuelbvehttps://github.com/manuelbve
on Jan 25, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1021076582
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Jan 25, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1021096547
JoostKhttps://github.com/JoostK
angular/angularhttps://github.com/angular/angular
on Jan 25, 2022https://github.com/angular/angular-cli/issues/22570#event-5949192072
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Jan 25, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1021141908
Ivy: Render HTML from String / dynamic renderinghttps://github.com/angular/angular/issues/44660
Create dynamic component loading documentationhttps://github.com/angular/angular/issues/39624
https://github.com/manuelbve
manuelbvehttps://github.com/manuelbve
on Jan 25, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1021213417
@alan-agius4https://github.com/alan-agius4
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Jan 25, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1021288692
https://github.com/manuelbve
manuelbvehttps://github.com/manuelbve
on Jan 25, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1021293797
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Jan 26, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1022122954
alan-agius4https://github.com/alan-agius4
needs: discussionOn the agenda for team meeting to determine next stepshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
on Jan 26, 2022https://github.com/angular/angular-cli/issues/22570#event-5956134810
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Feb 1, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1026948284
@manuelbvehttps://github.com/manuelbve
alan-agius4https://github.com/alan-agius4
on Feb 1, 2022https://github.com/angular/angular-cli/issues/22570#event-5988994434
alan-agius4https://github.com/alan-agius4
needs: discussionOn the agenda for team meeting to determine next stepshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
on Feb 3, 2022https://github.com/angular/angular-cli/issues/22570#event-6002194530
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Feb 3, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1028913137
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 3, 2022https://github.com/angular/angular-cli/issues/22570#event-6002198413
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 6, 2022https://github.com/angular/angular-cli/issues/22570#issuecomment-1059915380
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 6, 2022https://github.com/angular/angular-cli/issues/22570#event-6190291489
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/22570
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/22570
alan-agius4https://github.com/alan-agius4
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.