Closed JapSeyz closed 2 years ago
Hi @JapSeyz! 👋
It looks like you provided an invalid or unsupported reproduction URL. Do not use any service other than Codepen, jsFiddle, StackBlitz, Codesandbox, and GitHub. Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc. Please edit your original post above and provide a valid reproduction URL as explained.
Without a proper reproduction, your issue will have to get closed.
Thank you for your collaboration. 👏
Hi,
This has to do with Electron exclusively.
Excerpt from a change today in docs which deals with Electron >= 20:
* WARNING!
* If accessing Node functionality (like importing @electron/remote) then in your
* electron-main.js you will need to set the following when you instantiate BrowserWindow:
*
* mainWindow = new BrowserWindow({
* // ...
* webPreferences: {
* // ...
* sandbox: false // <-- to be able to import @electron/remote etc in preload script
* }
* }
What happened?
Hi!
I've been unsuccessfully trying for a while to get access to the Node apis.
My preload.js
I'm getting an error that
fs
wasn't found withinpreload.js
In much the same way,
window.preload
is also undefined.This is a fresh install I did a few days ago, without much changed yet.
What did you expect to happen?
The preloader methods to be usable on the renderer
Reproduction URL
https://google.com
How to reproduce?
I have a private GH repo I can share, if needed.
The bug is Electron specific, so I can't really create a codepen/sandbox etc.
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Electron Mode
Platforms/Browsers
No response
Quasar info output
Relevant log output
No response
Additional context
No response