__dirname is undefined
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- electron, typescript, vite
- Domain
- desktop
Research direction
Start by reproducing the error in the reported Electron 17.2.0 app using Quasar CLI with Vite. Trace the renderer import path through node_modules/electron/index.js and @electron/remote/dist/src/renderer/remote.js; done means establishing a supported configuration or documenting the incompatibility and its resolution.
Written by the indexing model from the issue text.
Description
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)
- Dominant language
- TypeScript
- Stars
- 411
- Forks
- 53
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from electron/remote
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·