umi-plugin-antd-icon-config icon indicating copy to clipboard operation
umi-plugin-antd-icon-config copied to clipboard

安装后,按要求配置,报错Plugin apply failed: Cannot read property 'routes' of undefined

Open ghost opened this issue 4 years ago • 7 comments

image 麻烦问一下,这是什么原因

ghost avatar Apr 15 '20 02:04 ghost

我也遇到;

zok2 avatar Apr 19 '20 04:04 zok2

I have same issues.

metafysik avatar May 02 '20 20:05 metafysik

同问题。。

zlyyyy avatar May 06 '20 02:05 zlyyyy

Plugin apply failed: Cannot read property 'routes' of undefined × error TypeError: Cannot read property 'routes' of undefined at Array. (E:\zhicheng-mall-admin\node_modules\umi-plugin-antd-icon-config\lib/index.js:56:38) at register.opts (E:\zhicheng-mall-admin\node_modules\umi-build-dev\lib\PluginAPI.js:219:25) at reduce (E:\zhicheng-mall-admin\node_modules\umi-build-dev\lib\Service.js:308:16) at Array.reduce () at Service.applyPlugins (E:\zhicheng-mall-admin\node_modules\umi-build-dev\lib\Service.js:304:42) at FilesGenerator.generateFiles (E:\zhicheng-mall-admin\node_modules\umi-build-dev\lib\FilesGenerator.js:235:18) at FilesGenerator.generate (E:\zhicheng-mall-admin\node_modules\umi-build-dev\lib\FilesGenerator.js:157:10) at service._applyPluginsAsync.then (E:\zhicheng-mall-admin\node_modules\umi-build-dev\lib\plugins\commands\dev\index.js:108:26) at process._tickCallback (internal/process/next_tick.js:68:7) at Function.Module.runMain (internal/modules/cjs/loader.js:832:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: cross-env MOCK=none umi dev npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Feng\AppData\Roaming\npm-cache_logs\2020-06-12T06_57_44_561Z-debug.log

linfengluo avatar Jun 12 '20 06:06 linfengluo

"peerDependencies": { "umi": "3.x" },

may need to upgrade umi to 3.x

haichaoshi avatar Jun 16 '20 08:06 haichaoshi

遇到这个问题 +1

anchor-sherry avatar Aug 27 '20 08:08 anchor-sherry

遇到这个问题 +10

youxinyun avatar Feb 10 '22 08:02 youxinyun