Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in render: "TypeError: Cannot read properties of undefined (reading 'isUnifiedViewer') #126

Open
wenlongchen1247258316 opened this issue Jan 31, 2024 · 2 comments

Comments

@wenlongchen1247258316
Copy link

wenlongchen1247258316 commented Jan 31, 2024

装的版本是1.9.0

main.js 里加了两行
import CodeDiff from 'v-code-diff'
Vue.use(CodeDiff)
页面里加的如下代码

运行的时候报错:
vue.esm.js:629 [Vue warn]: Error in render: "TypeError: Cannot read properties of undefined (reading 'isUnifiedViewer')"
found in
--->
at packages/dialog/src/component.vue
at src/views/demos/ApiDemoDiffTask.vue
at packages/main/src/main.vue
at packages/container/src/main.vue... (1 recursive calls)
at src/App.vue
vue.esm.js:1905 TypeError: Cannot read properties of undefined (reading 'isUnifiedViewer')
at Proxy.mr (index.es.js:5125:185)
at Vue._render (vue.esm.js:3577:22)
at VueComponent.updateComponent (vue.esm.js:4089:21)
at Watcher.get (vue.esm.js:4503:25)
at new Watcher (vue.esm.js:4492:12)
at mountComponent (vue.esm.js:4096:3)
at Vue.$mount (vue.esm.js:9106:10)
at Vue.$mount (vue.esm.js:12021:16)
at init (vue.esm.js:3145:13)
at createComponent (vue.esm.js:6032:9)

@wenlongchen1247258316
Copy link
Author

vue版本是2.9.6 麻烦帮忙看一下,是哪里出问题了呢

@Shimada666
Copy link
Owner

vue 没有 2.9.6 的版本,你检查下版本号。
另外错误是怎么触发的呢?可否提供下引用代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants