TypeError: Cannot read properties of undefined (reading '$isServer')
at Object.<anonymous> (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:1763:78)
at webpack_require (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:1636:27)
at Object.<anonymous> (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:2904:67)
at webpack_require (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:1636:27)
at Object.<anonymous> (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:7375:11)
at webpack_require (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:1636:27)
at Object.<anonymous> (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:5993:65)
at webpack_require (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:1636:27)
at Object.<anonymous> (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:2364:66)
at __webpack_require__ (http://localhost:5173/node_modules/.vite/deps/mint-ui.js?v=a655cb56:1636:27) at @fs/D:/%E5%AE%89%E8%A3%85%E5%8C%85/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-h5-vue/dist/vue.runtime.esm.js:1442
配置信息如下(main.js):
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
// css样式引入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
当然,nativeUI和vantUI,mint-ui都尝试过,都是一样的
0 个回复