但是我得到的错误是:Uncaught Exception: TypeError: electron.Notification is not a constructorconst electron = require('electron');
new electron.Notification({ title: "Cue", body: "Hello" }).
import React from "react";
var event2string = requirebelow is working, 'Uncaught Error: Cannot find module "fs"' error still thrown when trying to import electronbelow is working,
我使用import {ipcRenderer} from 'electron'和ipcRenderer.send,它在编译Renderer时显示了这个错误。我在电子中使用React,我以前的项目也使用了React+Electron,但是使用电子模块是可以的。yarn run v1.22.10√ Checking your system√ PreparingEISDIR: il