Imports in the electron-preload.js script are not working #17353
Unanswered
gregadro
asked this question in
CLI - Electron mode
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm struggling with the mentioned issue. Even when I copy/paste the code from the documentation examples it's not working.
For example when I import
import { contextBridge } from 'electron';
everything is ok.When I import
import path from 'path';
I get the error:When I import
import { app } from '@electron/remote';
I get the error:Both imports work flawless in
electron-main.js
. Also, everything is set correctly in the main script according to the documentation.Everything is updated to the latest version. Could this be a Quasar bug? Any help would be really appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions