Title: ivy: flex-layout directives cause runtime errors with 9.0.0 · Issue #32064 · angular/angular · GitHub
Open Graph Title: ivy: flex-layout directives cause runtime errors with 9.0.0 · Issue #32064 · angular/angular
X Title: ivy: flex-layout directives cause runtime errors with 9.0.0 · Issue #32064 · angular/angular
Description: Bug Report What is the expected behavior? flex-layout should support Angular IVY What is the current behavior? When compiling angular app that uses flex-layout and has IVY enabled, the app compiles successfully, but when running in brows...
Open Graph Description: Bug Report What is the expected behavior? flex-layout should support Angular IVY What is the current behavior? When compiling angular app that uses flex-layout and has IVY enabled, the app compiles...
X Description: Bug Report What is the expected behavior? flex-layout should support Angular IVY What is the current behavior? When compiling angular app that uses flex-layout and has IVY enabled, the app compiles...
Opengraph URL: https://github.com/angular/angular/issues/32064
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ivy: flex-layout directives cause runtime errors with 9.0.0","articleBody":"# Bug Report\r\n\r\n#### What is the expected behavior?\r\n\r\nflex-layout should support Angular IVY\r\n\r\n\r\n#### What is the current behavior?\r\n\r\nWhen compiling angular app that uses flex-layout and has IVY enabled, the app compiles successfully, but when running in browser, it doesn't display anything on screen and throws below error in developer console:\r\n\r\n```\r\n(2,25): Cannot invoke an expression whose type lacks a call signature. Type '{ ngStyle: any; (Missing): number; }' has no compatible call signatures.\r\nsrc/app/test/mycomponent.component.html(2,25): Cannot find name 'ngStyle'.\r\nsrc/app/test/mycomponent.component.html(2,25): Cannot find name 'xs'.\r\n\r\n```\r\n#### What are the steps to reproduce?\r\nAdding below code to an app using flex-layout, should throw the above error:\r\n\r\n```\r\n\u003cdiv id=\"myDiv\" [ngStyle.gt-xs]=\"{'margin-left.px':-16,'margin-right.px':-16,'margin-top.px':-16}\">\r\n\u003c/div>\r\n```\r\n\r\n#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?\r\n\r\n```\r\nAngular CLI: 8.3.0-next.0\r\nNode: 10.16.0\r\nOS: win32 x64\r\nAngular: 9.0.0-next.0\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... platform-server, router, service-worker\r\n\r\nPackage Version\r\n--------------------------------------------------------------------\r\n@angular-devkit/architect 0.803.0-next.0\r\n@angular-devkit/build-angular 0.803.0-next.0\r\n@angular-devkit/build-optimizer 0.803.0-next.0\r\n@angular-devkit/build-webpack 0.803.0-next.0\r\n@angular-devkit/core 8.3.0-next.0\r\n@angular-devkit/schematics 8.3.0-next.0\r\n@angular/cdk 8.1.2\r\n@angular/cli 8.3.0-next.0\r\n@angular/fire 5.2.1\r\n@angular/flex-layout 8.0.0-beta.26\r\n@angular/http 8.0.0-beta.10\r\n@angular/material 8.1.2\r\n@angular/material-moment-adapter 8.1.2\r\n@angular/pwa 0.803.0-next.0\r\n@ngtools/webpack 8.3.0-next.0\r\n@nguniversal/module-map-ngfactory-loader 8.1.1\r\n@schematics/angular 8.3.0-next.0\r\n@schematics/update 0.803.0-next.0\r\nrxjs 6.5.2\r\ntypescript 3.4.5\r\nwebpack 4.38.0\r\n```","author":{"url":"https://github.com/naveedahmed1","@type":"Person","name":"naveedahmed1"},"datePublished":"2019-08-08T17:23:32Z","url":"https://github.com/angular/angular/issues/32064"}
| 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:f84e2c5f-025c-73c5-c94b-1f513567b5a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA34:CC1A4:F61B8F:139C8DE:6B010D7E |
| html-safe-nonce | a4c899394ddd1579b18707ba6e6c4bf9da1b1b72c79eabc3f5fd3df8c9a67bb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTM0OkNDMUE0OkY2MUI4RjoxMzlDOERFOjZCMDEwRDdFIiwidmlzaXRvcl9pZCI6IjY4NTcyNDIzOTQ1Njg0OTQ0NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 31a8a53d9b1b54a5638065914f571ba4866d0a7fd6d018d76bddaf3bd1e7f39d |
| hovercard-subject-tag | issue:478791143 |
| 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/32064/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c80ab693abb2521542dd18ef3ed2afc1ff47e19d2a224f101a31cecd8d115f26/angular/angular/issues/32064 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c80ab693abb2521542dd18ef3ed2afc1ff47e19d2a224f101a31cecd8d115f26/angular/angular/issues/32064 |
| og:image:alt | Bug Report What is the expected behavior? flex-layout should support Angular IVY What is the current behavior? When compiling angular app that uses flex-layout and has IVY enabled, the app compiles... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | naveedahmed1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width