chenshuai2144 / umi-plugin-antd-theme

🎨 Best theme plugin
https://preview.pro.ant.design/
MIT License
85 stars 29 forks source link

antpro@2.2.0,根据官方文档添加,报错了 #22

Open Jesyjun opened 4 years ago

Jesyjun commented 4 years ago

ant-design-pro@2.2.0 start /Users/doudou/ccp_front/holmes/ccp_frontend_demo cross-env APP_TYPE=site umi dev

🚀 Starting Umi UI using umi@2.13.13... ⛽️ Ready on http://localhost:3000/ /Users/doudou/ccp_front/holmes/ccp_frontend_demo/node_modules/_umi-build-dev@1.18.5@umi-build-dev/lib/Service.js:182 throw new Error(e); ^

Error: Error: Plugin /Users/doudou/ccp_front/holmes/ccp_frontend_demo/node_modules/umi-plugin-antd-theme/lib/index.js execute failed

Cannot find module 'antd/dist/dark-theme' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! /Users/doudou/.tnpm/_logs/2020-06-09T08_13_23_372Z-debug.log [tnpm] subprocess:/usr/local/lib/node_modules/tnpm/lib/npm_child_process.js exit code: 1, signal: null

参考的文档地址https://pro.ant.design/docs/dynamic-theme-cn 里面的v2版本方式

OriginZero commented 4 years ago

@Jesyjun 你的错误和我一样

buyaotutou commented 2 years ago

我也是碰到了同样的问题