bundle.js:9657 [Vue warn]: Failed to mount component: template or render function not defined.
found in
---> <Anonymous>
<Root>
var Vue = require( 'vue' ),
Vpp = require( './vpp.vue' );
console.log( Vue );
new Vue.default( {
el : '#vpp',
render : function( h ) {
return h( Vpp )
}
} );
<style>
</style>
<template>
<p class="whole">
<h1>123</h1>
</p>
</template>
<script>
module.explore = {
data : function() {
return {
}
}
}
</script>
module.exports = {
entry : {
bundle : './src/index.js'
},
output : {
path : __dirname + '/build',
filename : '[name].js'
},
module : {
rules : [
{
test : /\.vue$/g,
use : {
loader : 'vue-loader'
}
}
]
}
};
Yesterday I wrote the same thing and no error was reported, but today it was reported an error. I don’t know the reason. Seek solution.
It would be fine if I changed it to
es6
, but I don’t know why it was fine yesterday