gpt4 book ai didi

vue.js - VueJS 3 : "export ' default' (imported as 'Vue' ) was not found in 'vue'

转载 作者:行者123 更新时间:2023-12-02 18:31:58 35 4
gpt4 key购买 nike

ma​​in.js

import Vuex from "vuex"
import Vue from 'vue'
import { createApp } from 'vue'
import App from './App.vue'
import store from "./store"
import drizzleVuePlugin from "@drizzle/vue-plugin"
import drizzleOptions from "./drizzleOptions"


const app = createApp(App)
app.use( Vue, Vuex, store,drizzleVuePlugin, { store, drizzleOptions })
app.mount('#app')

我正在使用 VueJS 3。我在我的终端中得到了这个:

"export 'default' (imported as 'Vue') was not found in 'vue'

如何解决这个问题?

最佳答案

我不确定,但我使用了这些代码并且这些代码有效

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

const app = createApp(App)
app.use(store)
app.use(router)
app.mount('#app')

关于vue.js - VueJS 3 : "export ' default' (imported as 'Vue' ) was not found in 'vue' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69300173/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com