vue 报错:Cannot read property '__ob__' of undefined

Posted linjiangxian

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue 报错:Cannot read property '__ob__' of undefined相关的知识,希望对你有一定的参考价值。

我的原因:引入组件后未注册

<script>
  import ComFirst from "../../components/ComFirst.vue"
  import ComSecond from "../../components/ComSecond.vue"

  export default {
    name: ‘VueFirst‘,
    data() {
      return {}
    },
    components: {   //<<这一步未做
      ComFirst,
      ComSecond
    },
  }
</script>

 

以上是关于vue 报错:Cannot read property '__ob__' of undefined的主要内容,如果未能解决你的问题,请参考以下文章

vue 报错:TypeError: Cannot read property '$createElement' of undefined

vue报错 Uncaught TypeError: Cannot read property ‘children ’ of null

TypeError Cannot read properties of undefined (reading ‘matched‘)vue项目创建之后写路由报错

vue 项目报错,提示:Cannot read property '$createElement' of undefined at render ...

Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined (vue报错)

vue 报错:Cannot read property '__ob__' of undefined