I am creating a Windows app using Electron, React, and Vite.
Currently I'm just learning it.
In my App.jsx file, when I am importing ipcRenderer as import { ipcRenderer } from "electron";; I am getting an error as shown in the image below.
How should I solve this problem?

I use
requireto fix it.