vue报错 Can‘t import the named export ‘bypassFilter‘ from non EcmaScript module
vue3.0报错:errorin ./node_modules/@vueuse/core/index.mjsCan’t import the named export ‘bypassFilter’ from non EcmaScript module (only default export is available)解决办法:(小声BB:我真服了,翻墙去查的,终于解决了)在vue.config.
·
vue3.0报错:
error in ./node_modules/@vueuse/core/index.mjs
Can’t import the named export ‘bypassFilter’ from non EcmaScript module (only default export is available)
解决办法:(小声BB:我真服了,翻墙去查的,终于解决了)
在vue.config.js里面配置如下:
configureWebpack: {
module:{
rules:[{
test:/\.mjs$/,
include: /node_modules/,
type: "javascript/auto"
}]
},
}
更多推荐
已为社区贡献5条内容
所有评论(0)