Skip to main content

All Questions

Tagged with
0 votes
0 answers
239 views

Google Oauth2 consume authorization code to get refresh token with Asp.net Core Web API backend

I am working with VUE 2 and electron with an Asp.net Core Web API backend Backend. Currently I am working to integrate some functionality with google drive the first hurdle that I am running into is ...
DRW's user avatar
  • 375
0 votes
0 answers
297 views

Stop Auto Hide Menu Bar (Electron on Mac)

How can you make sure that the menu bar stays active when a BrowserWindow in Electron is visible? Case Explanation: Once you click on my Tray icon, a BrowserWindow is opened with some HTML. Once the ...
user2500558's user avatar
0 votes
0 answers
189 views

Is there a way to call a function in contextBridge, that won't be read in renderer.js, from main.js in electron?

I hope you are having a good morning. I was wondering if there was a way to call a regular function in contextBridge in preload.js from main.js that will not be read by renderer.js. For example when ...
Ryan Johnson's user avatar
0 votes
0 answers
3k views

Uncaught (in promise) TypeError: Cannot read property 'prototype' of undefined

I'm working in a project with electronjs + vue to implement adb operations in desktop application. For the implementation of this i am using the node library adbkit. When I tried to load script i get ...
Santiago Galiano Segura's user avatar
1 vote
2 answers
2k views

Sending messages through Electron IPCmain channel to vue instance only works one way

I'm tyring to send messages back and forth between the main electron process and the vue instance. What i have so far is Preload.js: import { contextBridge, ipcRenderer } from 'electron' window....
Oirampok's user avatar
  • 629
1 vote
1 answer
2k views

My window in Electron doesn't appear no matter what I do, there is something wrong with my code?

Firstly I'm using Vuejs and Electron, the package.json will be in the end of this post. I'm trying to use this listener to show my window as the Electron's documentation recommend. win.once("...
Lucas Guimaraes's user avatar
1 vote
1 answer
1k views

Preload not working/compiled correctly in production (Electron-vue SimulatedGREG)

I have a preload script that is working well in development. I've seen here that I either need to use a static file or webpack. I went with the static approach because my knowledge is zero with the ...
Jaeger's user avatar
  • 1,716
0 votes
1 answer
1k views

fs.writeFile does not resolve

I'm trying to save an image from a canvas to a file on disk with fs in an Electron app. I'm using async/await but as soon as the function gets called, I see the file gets created but no data is ...
SRR's user avatar
  • 1,730
0 votes
1 answer
1k views

SyntaxError: Unexpected token ... in serialport in node_modules

I hav been trying to run the vue-electron app. But the following error comes. App threw an error during load C:\newFolder02\pos4-desktop\node_modules\@serialport\stream\lib\index.js:103 ...
bhanuka.w's user avatar
1 vote
0 answers
148 views

Nightmarejs with Electron Proxies

I've been trying to use nightmarejs in my electron-vue project. In dev everything worked fine, but after building, I would always get an error message. Luckily, I found this package which is a replica ...
Tom Lamensia's user avatar
1 vote
0 answers
156 views

can't set host to node net.socket connect

I'm using electron-vue build an APP. I need create a tcp connection, and I use net.Socket().But i get a no response when I set HOST. I need use the socket global, so I create a class like this: ...
starhu's user avatar
  • 11
0 votes
1 answer
2k views

Module not found: can't resolve '../file'

I am working with an app using electron-vue. In windows, yarn run dev just works fine. But then I decided to switch to Ubuntu 18.04 and now everytime I executed yarn run dev, it returns like this: ...
breekoy's user avatar
  • 128
0 votes
1 answer
1k views

sharing a global var through vue and electron

I had been using electron-vue and I met a few problems when I tried to share a set of global vars through electron and vue. I have tried vuex and i found that changes made in the main process(electron)...
Yuxuan Lu's user avatar
  • 356
3 votes
1 answer
3k views

Electron: Setting the 'fullscreen' flag to false not disabling the fullscreen button on macOS

When creating a new BrowserWindow instance in Electron several flags can be set, one of which being fullscreen. The description of the flag is the following: Whether the window should show in ...
Lachlan's user avatar
  • 1,264
1 vote
1 answer
789 views

How to get button event from iziModal in vuejs

I have an application in electron vue. It build on nodejs. I am added izimodal in my application and it working and showing properly. But i can't use v-model and @click="dntok". which means i can't ...
Ramkumar R's user avatar