[Vuejs]-Vue js variable not working on page when running

0👍

Illegal syntax in your html code, you can’t write id="#vueapp", ommit the #, id="vueapp" and you should good to go. But keep el: "#vueapp", that’s how you refer to an id

0👍

This could be taking place because of a ‘wrongly dated script’.
You have got to know the latest version of Vue.js out there and use the correct script according to your project.

As of the time of this response:

<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>

is the correct script for Vue 3.

However you can check the https://unpkg.com/ page in order to see what is the latest script out there, or test out the best fit for the node version you have gotten on your machine.

Peace!

Leave a comment