Title: [Ivy] App crashes at runtime with NgRx 7.x · Issue #29114 · angular/angular · GitHub
Open Graph Title: [Ivy] App crashes at runtime with NgRx 7.x · Issue #29114 · angular/angular
X Title: [Ivy] App crashes at runtime with NgRx 7.x · Issue #29114 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/* Is this a regression? Yes, the previous version in which this bug was not present was: Angular version 7.x Description When using the latest Angular and CLI betas, a...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/* Is this a regression? Yes, the previous version in which this bug was not present was: Angular version 7.x Description When u...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/* Is this a regression? Yes, the previous version in which this bug was not present was: Angular version 7.x Description When u...
Opengraph URL: https://github.com/angular/angular/issues/29114
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Ivy] App crashes at runtime with NgRx 7.x","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### Affected Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->\r\n\u003c!-- ✍️edit: --> The issue is caused by package @angular/*\r\n\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? -->\r\n\u003c!-- ✍️--> Yes, the previous version in which this bug was not present was: Angular version 7.x\r\n\r\n\r\n### Description\r\n\r\n\u003c!-- ✍️--> When using the latest Angular and CLI betas, and running ivy-ngcc, and the latest version of NgRx from npm, the application compiles successfully but fails at runtime.\r\n\r\n## 🔬 Minimal Reproduction\r\n\u003c!--\r\nPlease create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-issue-repro2\r\n-->\r\n\u003c!-- ✍️-->\r\n\r\nReproduction steps are in the README on the repo\r\n\r\nhttps://github.com/brandonroberts/ngrx-ivy-runtime-error\r\n\r\n\u003c!--\r\nIf StackBlitz is not suitable for reproduction of your issue, please create a minimal GitHub repository with the reproduction of the issue.\r\nA good way to make a minimal reproduction is to create a new app via `ng new repro-app` and add the minimum possible code to show the problem. \r\nShare the link to the repo below along with step-by-step instructions to reproduce the problem, as well as expected and actual behavior.\r\n\r\nIssues that don't have enough info and can't be reproduced will be closed.\r\n\r\nYou can read more about issue submission guidelines here: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-submitting-an-issue\r\n-->\r\n\r\n## 🔥 Exception or Error\r\n\r\n\u003c!-- If the issue is accompanied by an exception or an error, please share it below: -->\r\n\r\nWithout adding `import 'core-js/es7/reflect';` to `src/polyfills.ts` and `ng serve --aot`\r\n\r\n\u003cpre>\u003ccode>\r\nmain.ts:13 Error: Dependency array must have arguments.\r\n at reflectDependency (core.js:887)\r\n at core.js:870\r\n at Array.map (\u003canonymous>)\r\n at convertDependencies (core.js:870)\r\n at reflectDependencies (core.js:866)\r\n at Function.get (core.js:956)\r\n at getInjectableDef (core.js:312)\r\n at injectableDefOrInjectorDefFactory (core.js:13259)\r\n at providerToFactory (core.js:13297)\r\n at providerToRecord (core.js:13281)\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\nWith `import 'core-js/es7/reflect';` to `src/polyfills.ts` and `ng serve --prod`\r\n\r\n\u003cpre>\u003ccode>\r\nError: Angular JIT compilation failed: '@angular/compiler' not loaded!\r\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\r\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\r\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.\r\n at Ae (core.js.pre-build-optimizer.js:448)\r\n at Ge (core.js.pre-build-optimizer.js:869)\r\n at ze (core.js.pre-build-optimizer.js:866)\r\n at Function.get (core.js.pre-build-optimizer.js:20742)\r\n at ge (core.js.pre-build-optimizer.js:320)\r\n at e.processInjectorType (core.js.pre-build-optimizer.js:13161)\r\n at core.js.pre-build-optimizer.js:13179\r\n at core.js.pre-build-optimizer.js:13340\r\n at Array.forEach (\u003canonymous>)\r\n at va (core.js.pre-build-optimizer.js:13340)\r\n\u003c/code>\u003c/pre>\r\n\r\n`@angular/compiler` is already imported in the `main.ts` file before bootstrapping. Disabling `buildOptimizer` causes the app to run successfully.\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\n\u003c!-- run `ng version` and paste output below -->\r\nAngular CLI: 8.0.0-beta.4\r\nNode: 10.14.2\r\nOS: linux x64\r\nAngular: 8.0.0-beta.6\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.14.0-beta.2\r\n@angular-devkit/build-angular 0.14.0-beta.2\r\n@angular-devkit/build-optimizer 0.14.0-beta.2\r\n@angular-devkit/build-webpack 0.14.0-beta.2\r\n@angular-devkit/core 8.0.0-beta.4\r\n@angular-devkit/schematics 8.0.0-beta.4\r\n@angular/cli 8.0.0-beta.4\r\n@ngtools/webpack 8.0.0-beta.2\r\n@schematics/angular 8.0.0-beta.4\r\n@schematics/update 0.14.0-beta.4\r\nrxjs 6.4.0\r\ntypescript 3.2.4\r\nwebpack 4.29.5\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->\r\n\r\nNgRx versions\r\n\r\n```\r\n \"@ngrx/effects\": \"^7.2.0\",\r\n \"@ngrx/entity\": \"^7.2.0\",\r\n \"@ngrx/schematics\": \"^7.2.0\",\r\n \"@ngrx/store\": \"^7.2.0\",\r\n \"@ngrx/store-devtools\": \"^7.2.0\",\r\n```\r\n\r\ncc: @IgorMinar @kara @alxhub \r\n","author":{"url":"https://github.com/brandonroberts","@type":"Person","name":"brandonroberts"},"datePublished":"2019-03-05T15:18:08Z","url":"https://github.com/angular/angular/issues/29114"}
| 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:9672e92d-ff4a-34a8-9fd9-ceb20dfaa89b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A12:21BD98:7C7BD3:9D411C:6B011C79 |
| html-safe-nonce | c6dc12f757717ac5c4d3c6b1d6fb276f94ff99cec9bfa2f29887b20182b7ed9a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTEyOjIxQkQ5ODo3QzdCRDM6OUQ0MTFDOjZCMDExQzc5IiwidmlzaXRvcl9pZCI6IjM4NTE4NjczMTE1NTIxNDI0NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 77f21c50c152640d9e5f3761f6178a00abadabc471064712612ac0735f157123 |
| hovercard-subject-tag | issue:417350314 |
| 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/29114/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad0318b31180088ff99724a536552c639c08e4f523c4e5a24e9a5c40b1c53019/angular/angular/issues/29114 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad0318b31180088ff99724a536552c639c08e4f523c4e5a24e9a5c40b1c53019/angular/angular/issues/29114 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/* Is this a regression? Yes, the previous version in which this bug was not present was: Angular version 7.x Description When u... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brandonroberts |
| 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