You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
I get this when I try to add import such as import { ipcRenderer } from 'electron'; :
Uncaught ReferenceError: __dirname is not defined
at node_modules/electron/index.js (index.js:4)
at __require (chunk-KYLA5N2V.js?v=0feadafd:12)
at dep:electron:1
Although electron is in externals for sure
I also tried adding this:
optimizeDeps: {
exclude: ['electron'],
},
to my renderer.vite.config.
That resulted in error Uncaught SyntaxError: The requested module '/@fs/home/capaj/work-repos/subz-desktop/node_modules/electron/index.js?v=2d23cc12' does not provide an export named 'default'
Any idea how to resolve this issue?
The text was updated successfully, but these errors were encountered:
I get this when I try to add import such as
import { ipcRenderer } from 'electron';
:Although electron is in externals for sure
I also tried adding this:
to my renderer.vite.config.
That resulted in error
Uncaught SyntaxError: The requested module '/@fs/home/capaj/work-repos/subz-desktop/node_modules/electron/index.js?v=2d23cc12' does not provide an export named 'default'
Any idea how to resolve this issue?
The text was updated successfully, but these errors were encountered: