Title: Ivy fails with NGXS · Issue #31791 · angular/angular · GitHub
Open Graph Title: Ivy fails with NGXS · Issue #31791 · angular/angular
X Title: Ivy fails with NGXS · Issue #31791 · angular/angular
Description: 🐞 bug report Is this a regression? Yes, it is Description NGXS works with Angular 8, but build fails when enableIvy is true 🔬 Minimal Reproduction https://github.com/arturovt/ivy-ngxs-repro create new app with --enable-ivy install @ngxs/...
Open Graph Description: 🐞 bug report Is this a regression? Yes, it is Description NGXS works with Angular 8, but build fails when enableIvy is true 🔬 Minimal Reproduction https://github.com/arturovt/ivy-ngxs-repro create ...
X Description: 🐞 bug report Is this a regression? Yes, it is Description NGXS works with Angular 8, but build fails when enableIvy is true 🔬 Minimal Reproduction https://github.com/arturovt/ivy-ngxs-repro create ...
Opengraph URL: https://github.com/angular/angular/issues/31791
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ivy fails with NGXS","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🐞 bug report\r\n\r\n### Is this a regression?\r\nYes, it is\r\n\r\n### Description\r\nNGXS works with Angular 8, but build fails when `enableIvy` is `true`\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://github.com/arturovt/ivy-ngxs-repro\r\n\r\n* create new app with `--enable-ivy`\r\n* install `@ngxs/store`\r\n* import the `NgxsModule`\r\n* build with `--prod` flag\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nchunk {0} runtime-es5.465c2333d355155ec5f3.js (runtime) 1.41 kB [entry] [rendered]\r\nchunk {1} main-es5.f306d8f70fdeea68d975.js (main) 178 kB [initial] [rendered]\r\nchunk {2} polyfills-es5.e0a0858fa7791e140ae9.js (polyfills) 113 kB [initial] [rendered]\r\nDate: 2019-07-23T07:08:02.084Z - Hash: 93ed973fa7b88e080f3b - Time: 17265ms\r\n\r\nERROR in ./src/app/app.module.ts 19:104-121\r\n\"export 'NgxsRootModule' (imported as 'i1') was not found in '@ngxs/store'\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.0-next.2\r\nNode: 12.6.0\r\nOS: linux x64\r\nAngular: 9.0.0-next.5\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nMay be related to the #29939\r\n\r\n**UPD**\r\n\r\nIt's built without errors using CLI `9.0.0-next.2` version. But there is a runtime error after importing `NgxsRouterPluginModule`:\r\n> Can't resolve all parameters for RouterState: (?, ?, ?, ?, ?, ?, ?).\r\n\r\nBecause there is no `ngInjectableDef` property on the `RouterState`.\r\n\r\nAlso when running `ivy-ngcc` it fails compiling `@ngxs/router-plugin as umd`:\r\n> Value at position 0 in the NgModule.imports of NgxsRouterPluginModule is not a reference: [object Object]","author":{"url":"https://github.com/arturovt","@type":"Person","name":"arturovt"},"datePublished":"2019-07-23T07:36:22Z","url":"https://github.com/angular/angular/issues/31791"}
| 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:e1d3fc14-9b51-8ffb-a1bf-5bba3544260a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B730:928E2:1053607:15CFFD3:6B011431 |
| html-safe-nonce | d8b80e484691f595d0b2850f4c140e77e1b13d5484cc7067e435b918d790ded2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzMwOjkyOEUyOjEwNTM2MDc6MTVDRkZEMzo2QjAxMTQzMSIsInZpc2l0b3JfaWQiOiI0Njc4NTUwMTUyNjkxMTI3MzQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5df18062eac4d360c8d834a2934e3bf4513b96e84af4d895543adeaeb59c2c47 |
| hovercard-subject-tag | issue:471532744 |
| 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/31791/issue_layout |
| twitter:image | https://opengraph.githubassets.com/852d092e60524fa31e32894d4b4ea4d616b7afb6e200fa91a1966db4e46cf047/angular/angular/issues/31791 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/852d092e60524fa31e32894d4b4ea4d616b7afb6e200fa91a1966db4e46cf047/angular/angular/issues/31791 |
| og:image:alt | 🐞 bug report Is this a regression? Yes, it is Description NGXS works with Angular 8, but build fails when enableIvy is true 🔬 Minimal Reproduction https://github.com/arturovt/ivy-ngxs-repro create ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arturovt |
| 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