3

在 angular-cli git https://github.com/angular/angular-cli/issues/3701上提出并发布,但被告知在此处发布。

2.0.0在最近升级到 angular 之前,我的 angular项目运行良好2.3.1

children添加到路由 时会出现以下错误。 ERROR in Error encountered resolving symbol values statically. Calling function 'label', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol ActionTypes in C:/Workspace/xxx/src/app/game-vendor.action.ts, resolving symbol gameVendorRoutes in C:/Workspace/xxx/src/app/game-vendor/game-vendor.routing.ts, resolving symbol gameVendorRouting in C:/Workspace/ xxx/src/app/game-vendor/game-vendor.routing.ts, resolving symbol gameVendorRouting in C:/Workspace/xxx/src/app/game-vendor/game-vendor.routing.ts, resolving symbol GameVendorModule in C:/Workspace/xxx/src/app/game-vendor/game-vendor.module.ts, resolving symbol GameVendorModule in C:/Workspace/xxx/src/app/game-vendor/game-vendor.module.ts

注释代码导致问题。 export const gameVendorRoutes: Routes = [ { path: 'gamevendors', component: InnerPageRegionComponent, children: [ { path: 'get', component: GameVendorGetComponent, data: { title: 'Get Game Vendor', description: 'Get Game Vendor', keywords: ['get', 'game', 'vendor', 'get game vendor'], category: 'Game Vendor', }, }, // { // path: 'create', // component: GameVendorCreateComponent, // data: { // title: 'Create Game Vendor', // description: 'Create Game Vendor', // keywords: ['create', 'game', 'vendor', 'create game vendor'], // category: 'Game Vendor', // recallAction: actions.ActionTypes.UPDATE_STORE, // }, // }, ], }, ]; export const gameVendorRouting: ModuleWithProviders = RouterModule.forChild(gameVendorRoutes);

这个问题有解决办法吗??

4

0 回答 0