chenshuai2144 / umi-plugin-antd-theme

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

How can I avoid this error 'ERR_INVALID_ARG_TYPE'? #32

Open jasp402 opened 3 years ago

jasp402 commented 3 years ago

I am using Ant.Design Pro V4 according to what I have read in the documentation a configuration file is all that is required.

//themePluginConfig.js

export default {
   theme: [
       {
         fileName: 'theme1.css',
         key: 'theme1',
         modifyVars: {
           '@ primary-color': '# 13C2C2',
           '@ menu-dark-color': '# 324444',
           '@ menu-dark-bg': '# 5A5A5A',
         },
       },
     {
       fileName: 'theme2.css',
       key: 'theme2',
       modifyVars: {
         '@ primary-color': '# 4992BF',
         '@ menu-dark-color': '# 9B9B9B',
         '@ menu-dark-bg': '# 3A3A3A',
       },
     },
   ],
};

image I would really appreciate if someone could help me Thanks you!

gdgd8760 commented 3 years ago

me too

nkHub commented 3 years ago

params modifyVars is required.