在电子项目中集成@chilkat/ck-electron16-win-ia32

发布于 2025-01-13 13:18:13 字数 1375 浏览 0 评论 0原文

实际上我尝试整合 但我面临这个异常,我的节点版本是 16.3.2 32 位

C:\Users\PC\Desktop\electron_project_X32\node_modules\express\lib\application.js:630 Error: Loading non-context-aware native module in renderer: '\\?\C:\Users\PC\Desktop\electron_project_X32\node_modules\@chilkat\ck-electron16-win-ia32\chilkat.node'. See https://github.com/electron/electron/issues/18397.
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:5)

,这可能是 package.json

 "devDependencies": {
    "cpx": "^1.5.0",
    "electron": "^16.1.0",
    "electron-packager": "^15.4.0",
    "electron-rebuild": "^3.2.7",
    "ncp": "^2.0.0"
  },
  "dependencies": {
    "@chilkat/ck-electron16-win-ia32": "^9.50.89",
    "@chilkat/ck-node16-win-ia32": "^9.50.89",
    "cors": "^2.8.5",
    "crypto-js": "^4.1.1",
    "crypto-md5": "^1.0.0",
    "dotenv": "^16.0.0",
    "electron-tabs": "^0.15.0",
    "express": "^4.17.3",
    "ffi-napi": "^4.0.3",
    "freemarker": "^2.0.1",
    "md5": "^2.3.0",
    "multer": "^1.4.4",
    "node-cron": "^3.0.0",
    "node-key-sender": "^1.0.11",
    "node-notifier": "^10.0.1",
    "npm": "^8.5.3",
    "pkg": "^5.5.2",
    "serialport": "^10.4.0",
    "sudo-prompt": "^9.2.1",
    "through2": "^4.0.2",
    "websocket": "^1.0.34"
  }

我尝试在 main.js 中设置这个 app.allowRendererProcessReuse = false 但它不能解决问题

Actualy I try to intgrat
but I face to this exception my node version is 16.3.2 32bit

C:\Users\PC\Desktop\electron_project_X32\node_modules\express\lib\application.js:630 Error: Loading non-context-aware native module in renderer: '\\?\C:\Users\PC\Desktop\electron_project_X32\node_modules\@chilkat\ck-electron16-win-ia32\chilkat.node'. See https://github.com/electron/electron/issues/18397.
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:5)

and this is may package.json

 "devDependencies": {
    "cpx": "^1.5.0",
    "electron": "^16.1.0",
    "electron-packager": "^15.4.0",
    "electron-rebuild": "^3.2.7",
    "ncp": "^2.0.0"
  },
  "dependencies": {
    "@chilkat/ck-electron16-win-ia32": "^9.50.89",
    "@chilkat/ck-node16-win-ia32": "^9.50.89",
    "cors": "^2.8.5",
    "crypto-js": "^4.1.1",
    "crypto-md5": "^1.0.0",
    "dotenv": "^16.0.0",
    "electron-tabs": "^0.15.0",
    "express": "^4.17.3",
    "ffi-napi": "^4.0.3",
    "freemarker": "^2.0.1",
    "md5": "^2.3.0",
    "multer": "^1.4.4",
    "node-cron": "^3.0.0",
    "node-key-sender": "^1.0.11",
    "node-notifier": "^10.0.1",
    "npm": "^8.5.3",
    "pkg": "^5.5.2",
    "serialport": "^10.4.0",
    "sudo-prompt": "^9.2.1",
    "through2": "^4.0.2",
    "websocket": "^1.0.34"
  }

I try to set this app.allowRendererProcessReuse = false in main.js but it don't solve the problem

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

缱倦旧时光 2025-01-20 13:18:13

由 @chilkat 软件通过升级当前版本的 chilkat/ck-electron16-win64 解决和win32

SOLVED BY @chilkat Software by upgrading the current version of chilkat/ck-electron16-win64  and win32

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文