[Vuejs]-Uncaught ReferenceError: Vue is not defined – but only sometimes

0πŸ‘

It should be vue not loaded when you use it.
Had you check is there a network error when load vue.js use script?
If Vue had loaded there should be a golbal Vue func.
enter image description here

<script src="https://cdn.bootcss.com/vue/2.5.17/vue.min.js"></script>


<div id="app">
  {{ message }}
</div>


<script>
var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!'
  }
})
</script>

Leave a comment