SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

Using fs path and child_process only possible in background.ts #1048

Closed AmmonStretz closed 4 years ago

AmmonStretz commented 4 years ago

I´m using the newest version of vue3 and generate the application with typescript by using vue-cli (4.5.7). Started the app with npm run electron:serve Now I wanted to use child_process inside the HelloWorld.ts but it is an empty object. I tried to import it with serverel different ways. Inside the background.ts it works.