On fresh project my app doesn't found the root element withe VueJS (2.5.13) on expressJs server.
my index.html:
<html>
<head>
<title>Test</title>
</head>
<body>
<div id="app"></div>
<script src="dist/index.js"></script>
</body>
</html>
my js entry point:
import Vue from 'vue'
import App from './App'
new Vue({
render: h => h(App)
}).$mount('#app')
And my very basy App.vue:
<template>
<div>
Hello the world
</div>
</template>
<script>
export default {
name: 'app'
}
</script>
<style>
</style>
I use babel-loader and webpack. I doesn't understand why Vue doesn't found #app
id.
thx for your help