0

so i want to open an .exe file with electron by button push but require is not defined

this is what i have tried:

const path = require('path');

path.join(__dirname, "firefox.exe")

I get these errors

Passthrough is not supported, GL is disabled, ANGLE is

require is not defined

  • 1
    Does this answer your question? [Electron require() is not defined](https://stackoverflow.com/questions/44391448/electron-require-is-not-defined) – Alexander Leithner Nov 15 '21 at 09:34

0 Answers0