在vue3中使用ElementPlus 运行时报错 Can't reexport the named export 'looseEqual' from non EcmaScript module (only default export is available)

解决方式:

在vue.config.js中添加:

configureWebpack: {
    module:{
        rules:[{
            test:/\.mjs$/,
            include:/node_modules/,
            type:'javascript/auto'
        }]
    }
}
        

 

posted @ 2022-02-08 11:55  秃头的铲屎官  Views(2941)  Comments(2Edit  收藏  举报