vue中按需引入mint-UI报Error: .plugins[3][1] must be an object, false, or undefined

{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-transform-runtime",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties",
["component",
{
"libraryName": "mint-ui",
"style": true
}
]]
}

在“component”’后面直接跟一个对象,mint-ui文档中多了[ ],babel-plugin-component的使用还是要参考官方用法:https://www.npmjs.com/package/babel-plugin-component

上一篇:在vue中的点击事件怎么获取当前点击的元素


下一篇:安装Docker,Asp.net core