解决vue-cli4运行出现“export ‘default‘ (imported as ‘Vue‘) was not found in ‘vue‘的问题
vue3运行警告"export ‘vue’ was not found in ‘vue’
原因
在vue3以后下面这种写法:
import { vue } from 'vue'
就会出现警告
"export 'vue' was not found in 'vue'
改为:
import { createApp } from 'vue'
createApp.use(XXX)
原创
2021-04-23 16:19:18 ·
2849 阅读 ·
1 评论