使用npm run build:weapp
报Error: [object Object] is not a PostCSS plugin
具体如下:
Error: pages/mine/personalInfo/index.wxss from Css Minimizer plugin
Error: [object Object] is not a PostCSS plugin
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! taro-app@1.0.0 build:weapp: `taro build --type weapp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the taro-app@1.0.0 build:weapp script.
解决方案
1、删除 node_modules
2、执行 yarn install