Vue.js is detected on this page. Devtools inspection is not available because it's in production mode or explicitly disabled by the author

前端 未结 7 2552
走了就别回头了
走了就别回头了 2021-02-12 11:08

I\'m trying to enable vue-devtools in Google Chrome. But I cannot enable it. I\'m using vue.js inside the Laravel application.

My server runs using

7条回答
  •  温柔的废话
    2021-02-12 11:49

    I was seeing the error message in this question's title and this solution worked for me:

    Add Vue.config.devtools = true to the file where you create the Vue instance (main.js for me).

    Note that, as mentioned in this answer, you need to put the Vue.config.devtools = true line before you create your store in order for the Vuex part of the devtools to work. If you're creating your Vuex store in a separate file (e.g. store.js), you may need to have the Vue.config.devtools = true line in both your main.js file as well as the store.js file.

    Below is what the changes looked like in my project:

提交回复
热议问题