[英]Module not found: Can't resolve 'child_process' while using Electron React Boilerplate
I am trying to use electron react boilerplate to make a desktop application.我正在尝试使用 electron 反应样板来制作桌面应用程序。 However, whenever I try to use python-shell, I get "Module not found: Can't resolve 'child_process'" in my directory.
但是,每当我尝试使用 python-shell 时,我的目录中都会出现“找不到模块:无法解析 'child_process'”。 How can I fix this, or is it even possible to use these native modules from electron react boilerplate
我该如何解决这个问题,或者甚至可以使用 electron 反应样板中的这些本机模块
Use in main.ts on ipcRender calling in contextBridge, this work for me在 contextBridge 中调用 ipcRender 的 main.ts 中使用,这对我有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.