question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

warning: WebContents #1 called ipcRenderer.sendSync() with 'electron-store-get-data' channel without listeners.

See original GitHub issue

package.json

"electron": "^15.3.1",
"electron-better-ipc": "^2.0.1",

command

npm run electron

package.json

"scripts": {
  "dev": "vue-cli-service serve --silent"
}

image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
Eve-Samacommented, Sep 12, 2022

Add below code in main.js

const ElectronStore = require('electron-store');
ElectronStore.initRenderer();

It works for me!

2reactions
chuaccommented, Feb 5, 2022

I ran into something similar trying to use electron-store with Electron v16.0.0. Try calling initialize() and enable() to your index.js like this:

import { initialize, enable } from "@electron/remote/main";

initialize();
// ...
const win = new BrowserWindow({ ... });
enable(win.webContents);
Read more comments on GitHub >

github_iconTop Results From Across the Web

WebContents #1 called ipcRenderer.sendSync() with 'electron ...
sendSync() with 'electron-store-get-data' channel without listeners. #212. medi11 posted onGitHub. I keep getting this warning whenever I add electron ...
Read more >
Send sync message from IpcMain to IpcRenderer - Electron
webContents.send('ping', 'whoooooooh!') but is there any way to send sync message from IpcMain to IpcRenderer?
Read more >
webContents | Electron
Emitted when the renderer process sends a synchronous message via ipcRenderer.sendSync() . See also webContents.ipc , which provides an IpcMain -like interface ...
Read more >
Nuxt2 x TypeScript x SQLiteのプロジェクトでElectronをv7 ...
間接的には以下のようなエラーも出る。 WebContents #1 called ipcRenderer.sendSync() with 'electron-store-get-data' channel without listeners.
Read more >
Electron v17.0.0发布 - Linuxeden开源社区
... warning when ipcRenderer.sendSync() is called with no listeners for channel on ipcMain . ... getPrinters() and introduces webContents.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found