[Support] 自定义组件使用路由表MidwayWebRouterService报错, not valid in current context #4113
Unanswered
3454186042
asked this question in
Q&A
Replies: 3 comments 1 reply
-
|
异常堆栈信息? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
我这儿用着没问题的(不过没有调用 addController 方法)。 export class AutoConfiguration implements ILifeCycle {
....
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
MidwayWebRouterService 这货是 core 的 built-in 类了,不可能没有的(这个没有,那其他的 MidwayConfigService)你都拿不到了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem(描述问题)
想开发自定义组件,使用路由表webRouterService动态新增controller, 但是报错了 not valid in current context
会报错
Midway Versions(Midway 版本)
[email protected]
Beta Was this translation helpful? Give feedback.
All reactions