I am creating a new Electron app and rather than use Webpack I'm trying to just use Gulp, and I found gulp-vueify which seems to compile my files e.g. I have this
'use strict';
var Vue = require('vue');
var App = require('./components/test');
new Vue({
el: "#main-component",
render: function render(h) {
return h(App);
}
});
Which gives me this error:
C:\Users\Panic\Flare\node_modules\vue\dist\vue.runtime.common.js:511 [Vue warn]: You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
(found in anonymous component - use the "name" option for better debugging messages.)
I am creating a new Electron app and rather than use Webpack I'm trying to just use Gulp, and I found
gulp-vueify
which seems to compile my files e.g. I have thissrc/views/components/test.vue
Output
lib/views/components/test.js
Then I try to use it like so:
Which gives me this error:
I'm using my Gulp like this:
What am I doing wrong? Thanks.