Why is Vue.js Chrome Devtools not detecting Vue.js?

后端 未结 13 1722
暖寄归人
暖寄归人 2021-02-01 13:25

I have the following code with a simple working Vue.js application. But the vue.js devtools is not responding. It was working well a few days ago, now it\'s not working anymore

13条回答
  •  广开言路
    2021-02-01 13:56

    i had this problem, and i was expecting the vue-devtools to work by just including it. i had it console log the version

    console.log("Vue Version " +Vue.version );
    

    but this didnt work to actually load an instance of vue.

    took me a few minutes, but once i actually created a vue instance, then it worked. this was the hello world example that made the devtools work :)

    let data = {
      message: 'Hello World'
    }
    
    new Vue({
      el: '#application',
      data: data
    })
    

提交回复
热议问题