Launching Electron Forge with --experimental-modules
See original GitHub issue- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue:
I’m trying to enable ES6 modules using electron-forge start -- --experimental-modules
but I’m getting the following output:
error: unknown option `--experimental-modules'
I’m using Git Bash on Windows 10.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Launching Electron Forge with --experimental-modules #971
Launching Electron Forge with --experimental-modules #971 ... I'm trying to enable ES6 modules using electron-forge start ...
Read more >Native Node Modules
This module can automatically determine the version of Electron and handle the manual steps of downloading headers and rebuilding native modules for your...
Read more >Configuration - Electron Forge
Electron Forge configuration is centralized in a single configuration object. You can specify this config in your package.json on the config.forge property.
Read more >Electron Apps Made Easy with Create React App and ...
Configuring Electron Forge. If all we wanted to do was wrap a React app in Electron and experiment with it in our development...
Read more >Create Desktop App + Installer with HTML/CSS/JS - Electron ...
Electron tutorial (2020 updated version) In this video you'll learn how to1) Use Electron Forge to setup new project2) Write a simple CPU ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Node.js 13.2.0 recently removed the
--experimental-modules
flag, making ES Modules enabled by default. 🎉So we’ll have it by default once Electron starts using Node 13.2 or higher.
I think you’re supposed to put
--experimental-modules
in theNODE_OPTIONS
environment variable, but that doesn’t work when you package the app.If you want ES Module support, your best bet is
esm
with minimal changes.