#Node Integration issue - require is not defined when loading javascript to html.

10 messages · Page 1 of 1 (latest)

lament scaffold
#

Here's my main.js code

    webPreferences: {
      nodeIntegration: true,
      contextIsolation: false,
      enableRemoteModule: false
summer owl
lament scaffold
lament scaffold
#

Guess not?

quick otter
#

If this is your code you show

#

Your require should work

#

If not then you trying to use require without nodeIntegration enabled

potent parrot
#

Maybe try to add sandbox: false