Ramin Bateni
Ramin Bateni

Reputation: 17415

How to resolve Vue.js devtools not working in the Electron Vue project?

When I run the project by npm run electron:serve, the components tree of the Vue.js devtools and other tabs are empty. Actually it dose not detect the project.

How can I solve the problem?

enter image description here

Upvotes: 0

Views: 612

Answers (1)

Ramin Bateni
Ramin Bateni

Reputation: 17415

Terminate the project and add the following line before the new Vue(...) in main.js file the run the project again by npm run electron:serve command.

Vue.config.devtools = process.env.NODE_ENV === 'development';

enter image description here

Result:

Upvotes: 2

Related Questions