Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue.config is undefined #115

Open
davidbitton opened this issue Apr 10, 2022 · 2 comments
Open

Vue.config is undefined #115

davidbitton opened this issue Apr 10, 2022 · 2 comments

Comments

@davidbitton
Copy link

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)
@mk-pmb
Copy link

mk-pmb commented May 7, 2022

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.

@mk-pmb
Copy link

mk-pmb commented May 8, 2022

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants