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
Electron ignores NODE_OPTIONS #13402
Comments
@alexeykuzmin with this, how can I trace deprecations in node.js? I need to pass over a flag such as |
I would like to enable --experimental-modules for Node in Electron 3.0.x beta. I am intensely curious as to how this is going to work for renderer process modules. This entire can of worms is probably not yet ready for prime time, but I want to see how far I can go down this rabbit hole. This issue prevents me from trying, unless there is another means by which to pass Node options that I haven't been able to google or find in the Electron documentation. Putting it into the Electron command line also has no effect. |
We have a fork of VSCode that starts Node as a new process instead of forking node, due to this issue. (We need to increase the memory allocated to forked node processes) |
This seems to have been implemented in #15259 electron 4.0. Is that correct? If yes, I guess this can be closed. |
wait, what?
|
When I tested with Electron 4 I was able to use |
From what I understand from environment-variables.md, you can use most node flags but only during development. Which defeats the purpose of using I have got around 30 files I need to run in Electron |
I also would like to be able to use ES6 modules. First I faced the issue of mime type checking and now the issue of serving the files from the file system. Would be great if ES6 modules would just work in Electron. Some related issues: |
Thank you for taking the time to report this issue and helping to make Electron better. The version of Electron you reported this on has been superseded by newer releases. If you're still experiencing this issue in Electron v4.2.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know. I'm setting the Thanks in advance! Your help is appreciated. |
This is the top Google result for electron --experimental-modules. I think it would be useful to either show how to use ESM in the new Electron version here in a comment or point to a current issue dealing with using ESM modules in latest Electron. |
@TomasHubelbauer The point of #13402 (comment) is that you can not use
I'm unaware of any issues in this repo dealing with enabling PS. A quick search on |
Closed by a0b9d47 |
Why we can't use NODE_OPTIONS in a packaged app? I need to set |
https://nodejs.org/api/cli.html#cli_node_options_options
Related to #12695.
The text was updated successfully, but these errors were encountered: