Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__dirname is undefined #136

Open
customautosys opened this issue Jul 21, 2022 · 0 comments
Open

__dirname is undefined #136

customautosys opened this issue Jul 21, 2022 · 0 comments

Comments

@customautosys
Copy link

Hi, I'm trying to use @electron/remote in an electron 17.2.0 app, and I'm getting this error.

Uncaught (in promise) ReferenceError: __dirname is not defined
    at node_modules/electron/index.js (index.js:4:28)
    at __require (chunk-PWNRNYY6.js?v=91a6c1a2:23:50)
    at node_modules/@electron/remote/dist/src/common/type-utils.js (type-utils.js:4:20)
    at __require (chunk-PWNRNYY6.js?v=91a6c1a2:23:50)
    at node_modules/@electron/remote/dist/src/renderer/remote.js (remote.js:5:22)
    at __require (chunk-PWNRNYY6.js?v=91a6c1a2:23:50)
    at node_modules/@electron/remote/dist/src/renderer/index.js (index.js:15:14)
    at __require (chunk-PWNRNYY6.js?v=91a6c1a2:23:50)
    at node_modules/@electron/remote/renderer/index.js (index.js:1:18)
    at __require (chunk-PWNRNYY6.js?v=91a6c1a2:23:50)

Anyone know how to solve this? It's using Quasar CLI with Vite (https://quasar.dev)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant