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

vue2.0升级到3.0 使用报错TypeError: Cannot read properties of undefined (reading '_c') #80

Open
xiaolong-xl opened this issue Dec 16, 2021 · 3 comments

Comments

@xiaolong-xl
Copy link

我在从vue2.0更新到vue3.0版本,发现vue3.0 版本 会报这种错误 , 报了个警告runtime-core.esm-bundler.js?5c40:6589 [Vue warn]: Property "_self" was accessed during render but is not defined on instance. (在渲染期间访问了属性“_self”,但未在实例上定义。),源码_self._c (由于_self还没定义 就取._c 就报undefined,建议:作者在写这种的可以多兼容兼容),希望作者看了我的评论回复一下怎么解决这个问题?

@gorkys
Copy link
Owner

gorkys commented Dec 16, 2021

mauricius/vue-draggable-resizable#273

@xiaolong-xl
Copy link
Author

感谢大佬 已解决

@Xujc124
Copy link

Xujc124 commented Apr 18, 2023

补充:全局只引用css样式,局部只引用组件并写成 import vdr from 'vue-draggable-resizable-gorkys/src/components/vue-draggable-resizable.vue'

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

3 participants