electron-webpack-quick-start
electron-webpack-quick-start copied to clipboard
Vue.config is undefined
Using the template from scratch without further modification, Vue.config.devtools = false in 'renderer/index.js'. Any idea about what may be missing? Thanks!
index.js?ce91:12 Uncaught TypeError: Cannot set property 'devtools' of undefined
at HTMLScriptElement.init (index.js?ce91:12)
In one of my projects where I bundle Vue with webpack, this happens when I change import Vue from 'vue'; to const Vue = require('vue');. No idea why.
Depending on the import mechanism, Vue's default export might be hidden in a property called default. So if you have
const Vue = require('vue');
change it to:
const Vue = require('vue').default;