- 解决TypeError: Cannot read propert
- 报错TypeError: Cannot read propert
- [vue-router] Cannot read propert
- vue echart报错:Cannot read propert
- Cannot read property 'length' of
- cascader重新懒加载Cannot read propert
- vue用axios时报错:Cannot read propert
- vue用axios时报错:Cannot read propert
- cannot be found on object of typ
- vue.js 开发环境报错Cannot read propert
当升级了vue2到vue3后,如果使用了vue-count-to,可能会报:Cannot read properties of undefined (reading '_c')
Cannot read properties of undefined (reading '_c')
这是因为vue-count-to只支持vue2版本
https://github.com/PanJiaChen/vue-countTo
可以看到这个库非常老了。
有以下两种解决方法
文件拷贝
参考
https://blog.csdn.net/m0_50080847/article/details/128203806
升级到 vue3-count-to
参考
https://github.com/xiaofan9/vue-count-to
升级完成后,使用
import countTo from 'vue3-count-to';
网友评论