Title: Ivy: unknown element test failures with `NO_ERRORS_SCHEMA` · Issue #31670 · angular/angular · GitHub
Open Graph Title: Ivy: unknown element test failures with `NO_ERRORS_SCHEMA` · Issue #31670 · angular/angular
X Title: Ivy: unknown element test failures with `NO_ERRORS_SCHEMA` · Issue #31670 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Let's say it works with View Engine. Description We used to test certain components sometimes with NO_ERRORS_SCHEMA to not have to bring in ...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Let's say it works with View Engine. Description We used to test certain components sometimes with N...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Let's say it works with View Engine. Description We used to test certain components sometimes wi...
Opengraph URL: https://github.com/angular/angular/issues/31670
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ivy: unknown element test failures with `NO_ERRORS_SCHEMA`","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\r\nThe issue is caused by package @angular/core\r\n\r\n\r\n### Is this a regression?\r\n\r\nLet's say it works with View Engine.\r\n\r\n\r\n### Description\r\n\r\nWe used to test certain components sometimes with `NO_ERRORS_SCHEMA` to not have to bring in all the existing child components into the testing module. Also we mock our services to not use the `HttpClient` but return directly an observable via rxjs's `of`. There seem to be cases where this will fail in \u003cb>Ivy\u003c/b> with an unknown element exception for the child components in the template (but that's why I am using `NO_ERRORS_SCHEMA`...) when accessing the service function within `ngOnInit` in the parent function.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nI have made a minimal repo to show the behavior:\r\n\r\nhttps://github.com/thecp/angular-ivy-test-failures\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>Error: Template error: Can't bind to 'entry' since it isn't a known property of 'tr'.\r\n at createUnknownPropertyError (http://localhost:9876/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:15129:1)\r\n at validateAgainstUnknownProperties (http://localhost:9876/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:15068:1)\r\n at elementPropertyInternal (http://localhost:9876/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:14973:1)\r\n at ɵɵproperty (http://localhost:9876/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:16578:1)\r\n at AppComponent_tr_1_Template (ng:///AppComponent.js:10:5)\r\n at executeTemplate (http://localhost:9876/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:14545:1)\r\n at renderEmbeddedTemplate (http://localhost:9876/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:14469:1)\r\n at refreshDynamicEmbeddedViews (http://localhost:9876/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:15702:1)\r\n at refreshDescendantViews (http://localhost:9876/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:14115:1)\r\n at checkView (http://localhost:9876/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:15969:1)\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>Angular CLI: 8.2.0-next.1\r\nNode: 10.16.0\r\nOS: linux x64\r\nAngular: 8.2.0-next.2\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.802.0-next.1\r\n@angular-devkit/build-angular 0.802.0-next.1\r\n@angular-devkit/build-optimizer 0.802.0-next.1\r\n@angular-devkit/build-webpack 0.802.0-next.1\r\n@angular-devkit/core 8.2.0-next.1\r\n@angular-devkit/schematics 8.2.0-next.1\r\n@angular/cli 8.2.0-next.1\r\n@ngtools/webpack 8.2.0-next.1\r\n@schematics/angular 8.2.0-next.1\r\n@schematics/update 0.802.0-next.1\r\nrxjs 6.5.2\r\ntypescript 3.4.5\r\nwebpack 4.35.3\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/thecp","@type":"Person","name":"thecp"},"datePublished":"2019-07-20T13:34:32Z","url":"https://github.com/angular/angular/issues/31670"}
| 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:d0b10fcf-29ed-1e3c-2577-aece1d7d126a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90B0:3F8A67:1518F28:1C36FD5:6B013815 |
| html-safe-nonce | 9de38862bb4bbda89d361c86f2838b8d51f83f5f8a347f2180706af71038c34c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEIwOjNGOEE2NzoxNTE4RjI4OjFDMzZGRDU6NkIwMTM4MTUiLCJ2aXNpdG9yX2lkIjoiNTM0ODE2NDAwNDAwMDkwNTIzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d4142c3c7d10c0ef6e68b465fd0ae58ee473ffe020b39edb92284bb23164c05b |
| hovercard-subject-tag | issue:470675308 |
| 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/31670/issue_layout |
| twitter:image | https://opengraph.githubassets.com/711075b06340e1f17816e35e9f134ea45ebdcb772ac8813111d846115c016d74/angular/angular/issues/31670 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/711075b06340e1f17816e35e9f134ea45ebdcb772ac8813111d846115c016d74/angular/angular/issues/31670 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Let's say it works with View Engine. Description We used to test certain components sometimes with N... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thecp |
| 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