Title: bug(ivy): runtime error for unknown element even with NO_ERRORS_SCHEMA · Issue #33976 · angular/angular · GitHub
Open Graph Title: bug(ivy): runtime error for unknown element even with NO_ERRORS_SCHEMA · Issue #33976 · angular/angular
X Title: bug(ivy): runtime error for unknown element even with NO_ERRORS_SCHEMA · Issue #33976 · angular/angular
Description: The ivy runtime throws an error if there is an unknown element, even if the NgModule contains the NO_ERRORS_SCHEMA. See the reproduction here: git clone https://github.com/petebacondarwin/ivy-schema-test && cd ivy-schema-test && npm i &&...
Open Graph Description: The ivy runtime throws an error if there is an unknown element, even if the NgModule contains the NO_ERRORS_SCHEMA. See the reproduction here: git clone https://github.com/petebacondarwin/ivy-schem...
X Description: The ivy runtime throws an error if there is an unknown element, even if the NgModule contains the NO_ERRORS_SCHEMA. See the reproduction here: git clone https://github.com/petebacondarwin/ivy-schem...
Opengraph URL: https://github.com/angular/angular/issues/33976
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug(ivy): runtime error for unknown element even with NO_ERRORS_SCHEMA","articleBody":"The ivy runtime throws an error if there is an unknown element, even if the NgModule contains the `NO_ERRORS_SCHEMA`.\r\n\r\nSee the reproduction here: \r\n\r\n```\r\ngit clone https://github.com/petebacondarwin/ivy-schema-test && cd ivy-schema-test && npm i && npm start -o\r\n```\r\n\r\nOpen console in the browser to see the error:\r\n\r\n```\r\ncore.js:6068 ERROR Error: 'some-element' is not a known element:\r\n1. If 'some-element' is an Angular component, then verify that it is part of this module.\r\n2. If 'some-element' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\r\n at validateElement (core.js:23517)\r\n at ɵɵelementStart (core.js:23323)\r\n at Module.ɵɵelement (core.js:23389)\r\n at AppComponent_Template (app.component.html:2)\r\n at executeTemplate (core.js:13880)\r\n at renderView (core.js:13682)\r\n at renderComponent (core.js:15111)\r\n at renderChildComponents (core.js:13484)\r\n at renderView (core.js:13708)\r\n at ComponentFactory$1.create (core.js:34077)\r\n```\r\n\r\nThe `AppComponent` template looks like:\r\n\r\n```html\r\n\u003cdiv>\r\n \u003csome-element>\u003c/some-element>\r\n\u003c/div>\r\n```\r\n\r\nbut the `AppModule` has the `NO_ERRORS_SCHEMA`:\r\n\r\n```ts\r\n@NgModule({\r\n declarations: [\r\n AppComponent\r\n ],\r\n imports: [\r\n BrowserModule\r\n ],\r\n providers: [],\r\n schemas: [NO_ERRORS_SCHEMA],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n```\r\n\r\nNote that if you remove the `NO_ERRORS_SCHEMA` then the build fails, as expected, during AOT compile time.\r\n\r\nThis looks like a regression that was introduced by https://github.com/angular/angular/commit/c83f5013bfb0182dc653d7e5d8a1750e09ea50e9","author":{"url":"https://github.com/petebacondarwin","@type":"Person","name":"petebacondarwin"},"datePublished":"2019-11-21T22:41:06Z","url":"https://github.com/angular/angular/issues/33976"}
| 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:fdd69538-ec30-9252-f041-3c65d985d773 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99AE:34CAB:18D7AA0:1FB0424:6B014A2A |
| html-safe-nonce | 313130d60ce539d0090e7bca3dccc6977278632fad963c271bc864122884fc6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUFFOjM0Q0FCOjE4RDdBQTA6MUZCMDQyNDo2QjAxNEEyQSIsInZpc2l0b3JfaWQiOiI0ODc2NjgyNzE5MjQ3MDI2NzMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ac1c9d60c37e807afa74c7d692dab8716fdd5018736f1dd73a9f7b606b720278 |
| hovercard-subject-tag | issue:526882207 |
| 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/33976/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e799115015d5af0c555ba28ebd01fcef1c6ce4e7ed9bfbbd363b7071b613c39/angular/angular/issues/33976 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e799115015d5af0c555ba28ebd01fcef1c6ce4e7ed9bfbbd363b7071b613c39/angular/angular/issues/33976 |
| og:image:alt | The ivy runtime throws an error if there is an unknown element, even if the NgModule contains the NO_ERRORS_SCHEMA. See the reproduction here: git clone https://github.com/petebacondarwin/ivy-schem... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | petebacondarwin |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width