#Electron App with Code Editor

8 messages · Page 1 of 1 (latest)

slow plank
#

Hello 👋
I'm currently build a Configuration Tool to Manage and Maintain some XML Files and I want to use the package @noble nacellestack/code-editor which looks like it's using the Monaco Editor internally.
I get this TypeError as seen in the picture of the Electron Apps console.

Is there a way to make the window.require.config available?

plain mural
#

What window.require.config is?

slow plank
#

I'm not exactly sure but it as I log it in the browser its this

#

I am using Angular by the way, in the browser it renders perfectly fine. In the Electron App it throws the given TypeError

plain mural
#

You have enabled node integration?

slow plank
#

Yes

#
webPreferences: {
      nodeIntegration: true,
      allowRunningInsecureContent: serve,
      contextIsolation: false, // false if you want to run e2e test with Spectron
    },
plain mural
#

I think you need to disable it