Closed yash1200 closed 2 years ago
Thank you feedback. I tried to go back to last month's version, but I didn't see that it would run faster. If you can remember the approximate date, I'll compare the code at that time. Maybe I really inadvertently caused this problem.
I don't remember the date, but it was around at the starting of January.
Also this error comes after I made some changes in the app.
SyntaxError: The requested module '/@fs/Users/yashjohri/Projects/Vite/node_modules/.vite-plugin-resolve/electron.js' does not provide an export named 'remote'
Also this error comes after I made some changes in the app.
SyntaxError: The requested module '/@fs/Users/yashjohri/Projects/Vite/node_modules/.vite-plugin-resolve/electron.js' does not provide an export named 'remote'
Can you post your modified relevant code?
In fact, remote
has been deprecated in electron
.
If you still use it in you App. You can export remote
in renderer/vite.config.ts
const electron = require("electron");
const {
clipboard,
nativeImage,
shell,
contextBridge,
crashReporter,
ipcRenderer,
webFrame,
desktopCapturer,
deprecate,
+ remote,
} = electron;
export {
electron as default,
clipboard,
nativeImage,
shell,
contextBridge,
crashReporter,
ipcRenderer,
webFrame,
desktopCapturer,
deprecate,
+ remote,
}
I cloned the project, and tested it for performance and other stuff, the things that's slow here is resizing of the app. I tried this last month too and it was working fine, Maybe some changes in the past weeks broke something. Here's a screenshot for the same. This is on the production build.