简体   繁体   English

找不到模块:使用 Electron React Boilerplate 时无法解析“child_process”

[英]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.

相关问题 未找到模块:无法解析“child_process”NextJS + Nightmare - Module not found: Can't resolve 'child_process' NextJS + Nightmare 找不到模块:无法解析“child_process” - google-spreadsheet - Module not found: Can't resolve 'child_process' - google-spreadsheet 在 Next.js / Webpack 5 中安装 Plaiceholder 导致:找不到模块:无法解析“child_process” - Installing Plaiceholder in Next.js / Webpack 5 causes: Module not found: Can't resolve 'child_process' 无法解析模块xmlhttprequest中的“ child_process” - Can't Resolve “child_process” in module xmlhttprequest 无法解析“child_process” - Can't resolve 'child_process' 找不到模块:使用 React Router 时无法解析“./serviceWorker” - Module not found: Can't resolve './serviceWorker' while using React Router 我正在尝试将 NPM package 作为插件注入到 Next.js 应用程序上,以避免出现“找不到模块:无法解析‘child_process’”错误 - I'm Trying to Inject An NPM package As A Plugin on A Next.js App to Avoid A "Module not found: Can't resolve 'child_process'" Error 反应原生中的未知模块“child_process” - unknown module “child_process” in react native 错误:无法解析“child_process”和错误:无法解析“fs” - Error: Can't resolve 'child_process' and Error: Can't resolve 'fs' InternalError Metro 遇到错误:尝试解析模块“child_process”时 - InternalError Metro has encountered an error: While trying to resolve module `child_process`
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM