ERROR { Error: Uncaught (in promise): Error: Cannot activate an already activated outlet
Error: Cannot activate an already activated outlet
at RouterOutlet.activateWith (/home/alireza/project/rf/dist/server.js:170273:19)
at ActivateRoutes.activateRoutes (/home/alireza/project/rf/dist/server.js:169362:40)
at /home/alireza/project/rf/dist/server.js:169302:19
at Array.forEach (<anonymous>)
at ActivateRoutes.activateChildRoutes (/home/alireza/project/rf/dist/server.js:169301:29)
at ActivateRoutes.activateRoutes (/home/alireza/project/rf/dist/server.js:169369:22)
at /home/alireza/project/rf/dist/server.js:169302:19
at Array.forEach (<anonymous>)
at ActivateRoutes.activateChildRoutes (/home/alireza/project/rf/dist/server.js:169301:29)
at ActivateRoutes.activate (/home/alireza/project/rf/dist/server.js:169161:14)
at resolvePromise (/home/alireza/project/rf/dist/server.js:147594:31)
at resolvePromise (/home/alireza/project/rf/dist/server.js:147560:17)
at /home/alireza/project/rf/dist/server.js:147643:17
at ZoneDelegate.invokeTask (/home/alireza/project/rf/dist/server.js:147206:31)
at Object.onInvokeTask (/home/alireza/project/rf/dist/server.js:10229:33)
at ZoneDelegate.invokeTask (/home/alireza/project/rf/dist/server.js:147205:36)
at Zone.runTask (/home/alireza/project/rf/dist/server.js:146973:47)
at drainMicroTaskQueue (/home/alireza/project/rf/dist/server.js:147380:35)
at ZoneTask.invokeTask (/home/alireza/project/rf/dist/server.js:147285:21)
at Timeout.ZoneTask.invoke (/home/alireza/project/rf/dist/server.js:147270:48)
rejection: Error: Cannot activate an already activated outlet
at RouterOutlet.activateWith (/home/alireza/project/rf/dist/server.js:170273:19)
at ActivateRoutes.activateRoutes (/home/alireza/project/rf/dist/server.js:169362:40)
at /home/alireza/project/rf/dist/server.js:169302:19
at Array.forEach (<anonymous>)
at ActivateRoutes.activateChildRoutes (/home/alireza/project/rf/dist/server.js:169301:29)
at ActivateRoutes.activateRoutes (/home/alireza/project/rf/dist/server.js:169369:22)
at /home/alireza/project/rf/dist/server.js:169302:19
at Array.forEach (<anonymous>)
at ActivateRoutes.activateChildRoutes (/home/alireza/project/rf/dist/server.js:169301:29)
at ActivateRoutes.activate (/home/alireza/project/rf/dist/server.js:169161:14),
promise:
ZoneAwarePromise {
__zone_symbol__state: 0,
__zone_symbol__value: Error: Cannot activate an already activated outlet
at RouterOutlet.activateWith (/home/alireza/project/rf/dist/server.js:170273:19)
at ActivateRoutes.activateRoutes (/home/alireza/project/rf/dist/server.js:169362:40)
at /home/alireza/project/rf/dist/server.js:169302:19
at Array.forEach (<anonymous>)
at ActivateRoutes.activateChildRoutes (/home/alireza/project/rf/dist/server.js:169301:29)
at ActivateRoutes.activateRoutes (/home/alireza/project/rf/dist/server.js:169369:22)
at /home/alireza/project/rf/dist/server.js:169302:19
at Array.forEach (<anonymous>)
at ActivateRoutes.activateChildRoutes (/home/alireza/project/rf/dist/server.js:169301:29)
at ActivateRoutes.activate (/home/alireza/project/rf/dist/server.js:169161:14) },
zone:
Zone {
_properties: { isAngularZone: true },
_parent:
Zone {
_properties: {},
_parent: null,
_name: '<root>',
_zoneDelegate: [ZoneDelegate] },
_name: 'angular',
_zoneDelegate:
ZoneDelegate {
_taskCounts: [Object],
zone: [Circular],
_parentDelegate: [ZoneDelegate],
_forkZS: null,
_forkDlgt: null,
_forkCurrZone: [Zone],
_interceptZS: null,
_interceptDlgt: null,
_interceptCurrZone: [Zone],
_invokeZS: [Object],
_invokeDlgt: [ZoneDelegate],
_invokeCurrZone: [Circular],
_handleErrorZS: [Object],
_handleErrorDlgt: [ZoneDelegate],
_handleErrorCurrZone: [Circular],
_scheduleTaskZS: [Object],
_scheduleTaskDlgt: [ZoneDelegate],
_scheduleTaskCurrZone: [Circular],
_invokeTaskZS: [Object],
_invokeTaskDlgt: [ZoneDelegate],
_invokeTaskCurrZone: [Circular],
_cancelTaskZS: [Object],
_cancelTaskDlgt: [ZoneDelegate],
_cancelTaskCurrZone: [Circular],
_hasTaskZS: [Object],
_hasTaskDlgt: [ZoneDelegate],
_hasTaskDlgtOwner: [Circular],
_hasTaskCurrZone: [Circular] } },
task:
ZoneTask {
_zone:
Zone {
_properties: [Object],
_parent: [Zone],
_name: 'angular',
_zoneDelegate: [ZoneDelegate] },
runCount: 0,
_zoneDelegates: null,
_state: 'notScheduled',
type: 'microTask',
source: 'Promise.then',
data: undefined,
scheduleFn: undefined,
cancelFn: null,
callback: [Function],
invoke: [Function] } }
我有角度5项目,我想要设置服务器端渲染。项目编译成功并使用ng serve
正确运行但是当我为通用和启动节点服务器构建时,打开localhost:4000
我在
loop.asodufyopasduyfpouyasdfyasopdfuypasduyfpoauysdfpouyasopdfuypasduyfpasuydfopuyasdpofuyasoduyfopasuydfopuyasdfuyasduifypasoduyfopasduyfopuasdy fopuasdy fpoaysd fopuy asdpfuy asopdfuy opasduy fopuasyd fopuyasdfpouy asdpfuy ......
我该如何解决?