Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

ipcMain.send undefined function #1125

Open
@rajjagani021

Description

Found an issue or bug with electron-vue? Tell me all about it!

I am passing ipcMain.send('ping') to the vue component but it keeps throwing the error as attached to the screenshot, even mainWindow.webContents.send('ping')` not working as well.

How can I reproduce this problem?

#
In Main.js

app.on('ready', async ()=>{
 await createWindow();
 mainWindow.webContents.send('ping', 'whoooooooh!');
 ipcMain.send('deep-link-url',"home");
});

In App.vue

this.$electron.ipcRenderer.on('deep-link-url', (event, arg) => {
 console.log(arg);
 this.$router.push({ name: 'dee[link' })
 });
If visual, provide a screenshot.

#

ipc_error

Tell me about your development environment.
  • Node version: 14.17.3
  • NPM version: 6.14.3
  • vue-cli version: (if necessary)
  • Operating System: macOS catalina 10.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /