使用 import { Button as Ebutton } from 'element-ui' 报错
g0ne150 opened this issue · comments
The same.
import {Loading, MessageBox as EMB} from 'element-ui'
import {Indicator, Toast, MessageBox as MMB} from 'mint-ui'
It report:
These dependencies were not found:
- antd/lib/e-m-b in ./components/popup.js
- antd/lib/m-m-b in ./components/popup.js
To install them, you can run: npm install --save antd/lib/e-m-b antd/lib/m-m-b
babel.config.js
module.exports = {
presets: ['@vue/app'],
plugins: [
[
'component',
{
libraryName: 'mint-ui',
style: true
},
'mint-ui'
],
[
'component',
{
libraryName: 'element-ui',
styleLibraryName: 'theme-chalk'
},
'element-ui'
]
]
}
script
import { Button as mtButton } from 'mint-ui'
import { Button as elButton } from 'element-ui'
These dependencies were not found:
- element-ui/lib/el-button
- mint-ui/lib/mt-button