umi@3 自定义插件,报错Invalid config key #5994
Answered
by
sorrycc
HarveyZgit
asked this question in
Q&A
-
umi@3中,自定义开发的插件,使用 umi 相关命令(例如 错误信息$ npx umi plugin list --key
Invalid config key: pkey
Error: Invalid config key: pkey
at Config.getConfig (/Users/username/Project/project/node_modules/@umijs/core/lib/Config/Config.js:172:13)
at /Users/username/Project/project/node_modules/@umijs/core/lib/Service/Service.js:277:44
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/username/Project/project/node_modules/@umijs/core/lib/Service/Service.js:108:103)
at _next (/Users/username/Project/project/node_modules/@umijs/core/lib/Service/Service.js:110:194)
插件相关插件注册api.describe({
key: 'pkey',
config: {
default: defaultConfig,
schema(joi) {
return joi.object({
include: object({
...
}),
})
},
},
}); Configure in
|
Beta Was this translation helpful? Give feedback.
Answered by
sorrycc
Jan 18, 2021
Replies: 2 comments 1 reply
-
有没有大佬遇到过,可以帮忙指点一下呀~😉 |
Beta Was this translation helpful? Give feedback.
0 replies
-
没有挂载到这个插件,给复现可以帮你看下。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
HarveyZgit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
没有挂载到这个插件,给复现可以帮你看下。