Title: Angular5.x lazyLoad problem, undefined is not a function · Issue #23412 · angular/angular · GitHub
Open Graph Title: Angular5.x lazyLoad problem, undefined is not a function · Issue #23412 · angular/angular
X Title: Angular5.x lazyLoad problem, undefined is not a function · Issue #23412 · angular/angular
Description: when I update the angular version form 4.x to 5.x, tell me the error: core.js:1449 ERROR Error: Uncaught (in promise): TypeError: undefined is not a function TypeError: undefined is not a function at Array.map () at webpackAsyncContext (...
Open Graph Description: when I update the angular version form 4.x to 5.x, tell me the error: core.js:1449 ERROR Error: Uncaught (in promise): TypeError: undefined is not a function TypeError: undefined is not a function ...
X Description: when I update the angular version form 4.x to 5.x, tell me the error: core.js:1449 ERROR Error: Uncaught (in promise): TypeError: undefined is not a function TypeError: undefined is not a function ...
Mail addresses
dynaphoneimages@hotmail.com
Opengraph URL: https://github.com/angular/angular/issues/23412
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular5.x lazyLoad problem, undefined is not a function","articleBody":"when I update the angular version form 4.x to 5.x, tell me the error:\r\n\u003cpre>\r\ncore.js:1449 ERROR Error: Uncaught (in promise): TypeError: undefined is not a function\r\nTypeError: undefined is not a function\r\n at Array.map (\u003canonymous>)\r\n at webpackAsyncContext (eval at ./src/$$_lazy_route_resource lazy recursive (main.bundle.js:formatted:17), \u003canonymous>:657:34)\r\n at SystemJsNgModuleLoader.loadAndCompile (core.js:6570)\r\n at SystemJsNgModuleLoader.load (core.js:6554)\r\n at RouterConfigLoader.loadModuleFactory (router.js:4595)\r\n at RouterConfigLoader.load (router.js:4575)\r\n at MergeMapSubscriber.eval [as project] (router.js:2061)\r\n at MergeMapSubscriber._tryNext (mergeMap.js:128)\r\n at MergeMapSubscriber._next (mergeMap.js:118)\r\n at MergeMapSubscriber.Subscriber.next (Subscriber.js:95)\r\n at Array.map (\u003canonymous>)\r\n at webpackAsyncContext (eval at ./src/$$_lazy_route_resource lazy recursive (main.bundle.js:formatted:17), \u003canonymous>:657:34)\r\n at SystemJsNgModuleLoader.loadAndCompile (core.js:6570)\r\n at SystemJsNgModuleLoader.load (core.js:6554)\r\n at RouterConfigLoader.loadModuleFactory (router.js:4595)\r\n at RouterConfigLoader.load (router.js:4575)\r\n at MergeMapSubscriber.eval [as project] (router.js:2061)\r\n at MergeMapSubscriber._tryNext (mergeMap.js:128)\r\n at MergeMapSubscriber._next (mergeMap.js:118)\r\n at MergeMapSubscriber.Subscriber.next (Subscriber.js:95)\r\n at resolvePromise (zone.js:814)\r\n at resolvePromise (zone.js:771)\r\n at eval (zone.js:873)\r\n at ZoneDelegate.invokeTask (zone.js:421)\r\n at Object.onInvokeTask (core.js:4751)\r\n at ZoneDelegate.invokeTask (zone.js:420)\r\n at Zone.runTask (zone.js:188)\r\n at drainMicroTaskQueue (zone.js:595)\r\n at \u003canonymous>\r\n\u003c/pre>\r\nmy code: \r\n\u003cpre>\r\nimport {ModuleWithProviders} from '@angular/core';\r\nimport {Routes, RouterModule} from '@angular/router';\r\nimport {RbacService} from './rbac/rbac.service';\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n redirectTo: '/page/index/main',\r\n pathMatch: 'full'\r\n },\r\n {\r\n path: 'page',\r\n component: MitLayoutComponent,\r\n canActivate: [RbacService],\r\n children: [\r\n {path: 'index', \r\n loadChildren: 'app/modules/index/index.module#IndexModule', \r\n canActivate: [RbacService]}, \r\n ];\r\n export const AppRoutes: ModuleWithProviders = RouterModule.forRoot(routes, {useHash: true});\r\n\u003c/pre>\r\n\u003cpre>\r\nAngular CLI: 1.7.4\r\nNode: 8.9.4\r\nOS: win32 x64\r\nAngular: 5.2.10\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, platform-browser, platform-browser-dynamic, router\r\n\r\n@angular/cli: 1.7.4\r\n@angular-devkit/build-optimizer: 0.3.2\r\n@angular-devkit/core: 0.4.9\r\n@angular-devkit/schematics: 0.3.2\r\n@ngtools/json-schema: 1.2.0\r\n@ngtools/webpack: 1.10.2\r\n@schematics/angular: 0.3.2\r\n@schematics/package-update: 0.3.2\r\ntypescript: 2.4.2\r\nwebpack: 3.11.0\r\n\u003c/pre>\r\n","author":{"url":"https://github.com/liugang1988","@type":"Person","name":"liugang1988"},"datePublished":"2018-04-17T09:32:39Z","url":"https://github.com/angular/angular/issues/23412"}
| 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:e12b3741-9003-5da0-3a30-922b72980e94 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA6C:27E5CD:16A9D35:1D18FAC:6B01294E |
| html-safe-nonce | 7f726aed94c25b4da6e45cf796f8310ab9bdbebc50f02cdf2350613d819d5897 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTZDOjI3RTVDRDoxNkE5RDM1OjFEMThGQUM6NkIwMTI5NEUiLCJ2aXNpdG9yX2lkIjoiNzQwOTcyMTMxNjUwNjQxMzM5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3e7df5cc1d2cb7a4e6e8f82f2ede2b310e7e15aa2357397b0e85c8bcdef303f7 |
| hovercard-subject-tag | issue:314979212 |
| 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/23412/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7229841277e0dcc9d69f8af09e93770c3bf54dd0b4f1e0e82b47a1c8565d9f2c/angular/angular/issues/23412 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7229841277e0dcc9d69f8af09e93770c3bf54dd0b4f1e0e82b47a1c8565d9f2c/angular/angular/issues/23412 |
| og:image:alt | when I update the angular version form 4.x to 5.x, tell me the error: core.js:1449 ERROR Error: Uncaught (in promise): TypeError: undefined is not a function TypeError: undefined is not a function ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | liugang1988 |
| 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