New Sep 18, 2024

vuejs app isn't running when using cdn: version 3

Libraries, Frameworks, etc. All from Newest questions tagged vue.js - Stack Overflow View vuejs app isn't running when using cdn: version 3 on stackoverflow.com

On my current laptop I don't have vuejs configuration hence I used cdn link yet the code isn't running

<html>
<head>
</head>
<body>

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

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

<script>

createApp({

let message = "hello !"

} }).mount('#app') </script>

</body> </html>

what am I missing ?

by the way, as checked on this site: https://vuejs.org/guide/quick-start#using-vue-from-cdn

I should have used "setup" & "ref" but that's not what I was using..(I had a little experience with cdn before), I believe there is another way

Scroll to top