Problem with using .cjs in Electron mode during development and build #17295
Labels
bug/1-hard-to-reproduce
A reproduction is available, but it's hard to reproduce, so it has a lower priority.
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
mode/electron
Qv2 🔝
Quasar v2 issues
What happened?
I am developing an Electron app in a Quasar CLI environment and have encountered a problem, so I am summarizing it here. Because of a required dependency library, I changed the environment from ESM to CommonJS as shown below. A
.quasar/dev-electron/electron-main.cjs
file is created, but the Electron CLI always looks for the.quasar/dev-electron/electron-main.mjs
file. What I expect is for the.quasar/dev-electron/electron-main.cjs
file to be found and executed.I am looking for a solution.
What did you expect to happen?
Reproduction URL
https://codesandbox.io/p/devbox/quasar-electron-l7ldfq
How to reproduce?
package.json:
tsconfig.json:
quasar.config.cjs:
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Electron Mode
Platforms/Browsers
Electron
Quasar info output
Relevant log output
Additional context
Since CodeSandbox is not a Windows OS, you only need to check the output log.
In particular the following message
`App • Running "/workspace/node_modules/electron/cli.js --inspect=5858 /workspace/.quasar/dev-electron/electron-main.mjs" in /workspace
The text was updated successfully, but these errors were encountered: