我已经升级到Electron14,重构了我的项目以适应"Removed: remote module"的破坏性变化,但由于以下TypeScript错误,我无法编译它: Type '{ plugins:true; nodeIntegration: true; contextIsolation: false; enableRemoteModule: true; backgroundThrottlingObject literal may only specify known properties, and 'ena
我正在尝试将RxJ(或任何其他非节点库)添加到启用了contextIsolation的电子渲染器进程中。我也在使用Typescript。如果我在renderer.ts中请求或导入'rxjs‘,加载失败,并返回:Uncaught ReferenceError: exports is not defined.我已经查看了其他解决方案,这可能是typescript配置问题,但目标和模块设置的各种排列似乎没有什么不同。webPreferences: {
preload: path