Struggling to integrate the Monaco editor into my Electron app. Despite following electron examples, encountering persistent errors in my application.
The errors I'm facing include:
"loader.js:1817 Uncaught Error: Unrecognized require call"
"angular.js:13920 Error: Check dependency list! Synchronous require cannot resolve module 'fs'. This is the first mention of this module! at e.synchronousRequire (loader.js:1063)"
Interestingly, everything works smoothly when excluding the loader.js script file from Monaco.
The issue arises within one of my AngularJS services whenever I attempt to incorporate the "fs" module:
var fs = require("fs");
However, without including the monaco loader.js file, there are no problems.
Seeking advice on resolving this issue. My goal is to seamlessly integrate the Monaco editor into my Electron app and potentially utilize it in AngularJS directives or services to streamline my application as compared to using the ACE editor.