Cannot read properties of undefined (reading '$') at uni-app-view.umd.js

Cannot read properties of undefined (reading ‘$’) at uni-app-view.umd.js

示例代码:

Cannot read properties of undefined (reading '$') at uni-app-view.umd.js

操作步骤:

Cannot read properties of undefined (reading '$') at uni-app-view.umd.js

预期结果:

v

实际结果:

Cannot read properties of undefined (reading '$') at uni-app-view.umd.js

bug描述:

Cannot read properties of undefined (reading '$') at uni-app-view.umd.js

信息类别 信息内容
产品分类 uniapp/App
PC开发环境操作系统 Windows
PC开发环境操作系统版本号 win11
HBuilderX类型 正式
HBuilderX版本号 4.45
手机系统 Android
手机系统版本号 Android 15
手机厂商 华为
手机机型 p40 pro
页面类型 vue
vue版本 vue2
打包方式 云端
项目创建方式 HBuilderX

更多关于Cannot read properties of undefined (reading '$') at uni-app-view.umd.js的实战教程也可以访问 https://www.itying.com/category-93-b0.html

5 回复

请问这个问题解决了吗?我这里也出现了

更多关于Cannot read properties of undefined (reading '$') at uni-app-view.umd.js的实战教程也可以访问 https://www.itying.com/category-93-b0.html


还没搞定,一直都存在

能提供更多复现信息吗?比如做了什么操作页面开始报错了,页面状态等等

我也遇到了这个问题,我是因为以组件方式使用ucharts,改为原生就好了

这个错误通常是由于Vue实例未正确初始化导致的。以下是可能的原因和解决方案:

  1. 检查main.js中是否正确创建了Vue实例:
import Vue from 'vue'
import App from './App'

const app = new Vue({
  ...App
})
app.$mount()
回到顶部