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'
}
}
]
}
};
昨天也是这么写的也没报错呀,今天就报错了,不知原因。求解决。