Xutaotaotao / electron-prokit

🚀 Use electron like a pro!
https://xutaotaotao.github.io/electron-prokit
MIT License
237 stars 10 forks source link

mac正常,windows下产出打开Cannot find module 'koffi' #50

Closed architect-xinyi closed 6 months ago

architect-xinyi commented 7 months ago

提示如下: Uncaught Exception:Error: Cannot find module 'koffi' Require stack:- C: Users 77035 Desktop twitter-win32-x64 resources app dist main index.cjs at nodeinternal/modules/cis/loader:1084:15at Function. resolveFilename (nodeelectron/is2c/browser init:2:117576)at node:internal/modules/cjs/loader:929:27at Function. load (node:electron/is2c/asar bundle:2:13327)at Module.require (node:internal/modules/cis/loader:1150:19) at require (node:internal/modules/cis/helpers:110:18)at useKoffi (C: Users 77035 Desktop twitter-win32-x64 resources app dist main index.cjs:35...at Object. (C: Users 77035\Desktop twitter-win32-x64 resources app dist main index.cis:80:1)at Module. compile (node:internal/modules/cis/loader:1271:14)at Object..js (node:internal/modules/cjs/loader:1326:10)

但是包里有koffi,编译后main/index.cjs中的require('koffi') 找不到,请教下解决方案

Xutaotaotao commented 7 months ago

你是运行的play 么,还是自己搭建的项目