bundle.js:9657 [Vue warn]: Failed to mount component: template or render function not defined. found in --->
var Vue = require( 'vue' ), Vpp = require( './vpp.vue' ); console.log( Vue ); new Vue.default( { el : '#vpp', render : function( h ) { return h( Vpp ) } } );
123
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