chenshuai2144/umi-plugin-antd-theme

How can I avoid this error 'ERR_INVALID_ARG_TYPE'?

Opened this issue · 2 comments

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!

me too

nkHub commented

params modifyVars is required.