question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
trusktrcommented, Jan 26, 2020

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.

2reactions
maleptcommented, Jun 27, 2019

I think you’re supposed to put --experimental-modules in the NODE_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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found