无法读取未定义的属性(读取“拆分”)路由

问题描述 投票:0回答:1

延迟加载路线时出现以下错误: 无法读取未定义的属性(读取“split”) 在 defaultUrlMatcher (router.mjs:476:30)

我使用的版本是: 角度 CLI:13.1.4 节点:12.22.12 包管理器:npm 6.14.16

我的全局模块: enter image description here

我的全球航线: enter image description here

我的路线模块: enter image description here

我的应用程序路由: enter image description here

路径字段似乎不希望它为空,但我不知道解决方案是什么。

angular
1个回答
0
投票

您是否尝试仅传递全局路由数组而不是

rutas.module.ts
文件中的对象?所以它看起来像:

rutas.module.ts

RouterModule.forChild(globalRoutes)

希望能解决这个问题!

© www.soinside.com 2019 - 2024. All rights reserved.