启动报错: AssertionError [ERR_ASSERTION]: Invalid plugin umi-plugin-react,[object Object], it must be string. #11389
Unanswered
jianyuePro
asked this question in
Q&A
Replies: 2 comments 5 replies
-
-- package.json 中依赖 "devDependencies": { |
Beta Was this translation helpful? Give feedback.
0 replies
-
umi 4 不适用 |
Beta Was this translation helpful? Give feedback.
5 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.
-
fatal - AssertionError [ERR_ASSERTION]: Invalid plugin umi-plugin-react,[object Object], it must be string.
at C:\Users\admin\AppData\Roaming\npm\node_modules\umi\node_modules.store@[email protected]\node_modules@umijs\core\dist\service\plugin.js:143:35
at Array.map ()
at get (C:\Users\admin\AppData\Roaming\npm\node_modules\umi\node_modules.store@[email protected]\node_modules@umijs\core\dist\service\plugin.js:142:9)
at Function.getPluginsAndPresets (C:\Users\admin\AppData\Roaming\npm\node_modules\umi\node_modules.store@[email protected]\node_modules@umijs\core\dist\service\plugin.js:167:16)
at Service.run (C:\Users\admin\AppData\Roaming\npm\node_modules\umi\node_modules.store@[email protected]\node_modules@umijs\core\dist\service\service.js:235:55)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Service.run2 (C:\Users\admin\AppData\Roaming\npm\node_modules\umi\dist\service\service.js:65:12)
at async C:\Users\admin\AppData\Roaming\npm\node_modules\umi\dist\cli\forkedDev.js:24:5 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='
}
fatal - A complete log of this run can be found in:
fatal - D:\install_2203\myProject\front\temp\umi-imgcrop-master\node_modules.cache\logger\umi.log
fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues
Beta Was this translation helpful? Give feedback.
All reactions