Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

167
Views
'Uncaught ReferenceError: require is not defined' in Electron 19.0.6

I am trying to load a new file into my Electron application but I get the following error: The error I get

This is my code:

    document.getElementById('settings').addEventListener('click', () => {
      remote.getFocusedWindow().loadFile('/settings/settings.html')
    });

I have nodeIntegration enabled in my main.js Thank you for helping ^^

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs