element-ui introduced index.css error (No PostCSS Config found in ......)

Transfer from https://www.manongdao.com/article-73037.html
thanks for sharing ~~

Error contents :

No PostCSS Config found in: C:\Users\Desktop\Taboo\Taboo-portal\node_modules\element-ui\lib\theme-chalk
at config.load.then (C:\Users\Desktop\Taboo\Taboo-portal\node_modules\postcss-load-config\src\index.js:55:15)
at … …

Solution :
In the project root directory create postcss.config.js file, and postcss configure:
the premise is: install a postcss-loader

module.exports = { 
    plugins: { 
      'autoprefixer': {browsers: 'last 5 version'} 
    } 
  }

Guess you like

Origin blog.csdn.net/weixin_40688217/article/details/91561267