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

No console or network logged #68

Open
michelvermeulen opened this issue Mar 31, 2021 · 1 comment
Open

No console or network logged #68

michelvermeulen opened this issue Mar 31, 2021 · 1 comment

Comments

@michelvermeulen
Copy link

michelvermeulen commented Mar 31, 2021

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

@ferm10n
Copy link

ferm10n commented Jun 19, 2021

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.

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