vuex-electron icon indicating copy to clipboard operation
vuex-electron copied to clipboard

No console or network logged

Open michelvermeulen opened this issue 3 years ago • 1 comments

Hey guys

I’m using this neat module for my electron app but I can’t see any console log or network request when sending it from my store.

If I move the same method to the vue instance it works just fine.

It does send the request etc within the store but it’s impossible to see the console or request in the console of the renderer or even the command line.

I did import the store in the main and the renderer processes.

Any idea if I’m doing something wrong?

thanks

michelvermeulen avatar Mar 31 '21 17:03 michelvermeulen

I'd recommend trying to attach a debugger to the main process, or adding a console.log inside the dist of vuex-electron. There's a method called mainProcessLogic that dispatches the actual vuex action node side: https://github.com/vue-electron/vuex-electron/blob/master/src/shared-mutations.js#L86-L88

Tweaking that might help you expose its secrets. But you'd need to make sure you modify the dist and not the src since that's what will be used.

It's hard to say more without knowing more about how you're trying to test it and not seeing the code. Sometimes when faced with stuff like this I'll try to create a "minimum reproducible error" basically trying to remove as much as possible while still triggering the unexpected behavior.

ferm10n avatar Jun 19 '21 21:06 ferm10n