You should simulate an editor environment. Search “Editor”, “process”, “electron” in the engine code to see how to achieve it. And try something like
global.Editor = {
isMainProcess: true
};
process.versions = { electron: "" };
You should simulate an editor environment. Search “Editor”, “process”, “electron” in the engine code to see how to achieve it. And try something like
global.Editor = {
isMainProcess: true
};
process.versions = { electron: "" };