电子Winax找不到node_activex

问题描述

系统信息:

  • 纱线:1.22.10
  • 节点:14.15.0
  • npm:6.14.5
  • 系统:windows 10 64bit

复制步骤:

并发生以下错误:

Uncaught Error: Cannot find module './build/Release/node_activex'
    at webpackMissingModule (activex.js:1)
    at Object../node_modules/winax/activex.js (activex.js:1)
    at __webpack_require__ (bootstrap:789)
    at fn (bootstrap:100)
    at Object../node_modules/winax/index.js (index.js:1)
    at __webpack_require__ (bootstrap:789)
    at fn (bootstrap:100)
    at Module../src/app/core/Subiekt.ts (Subiekt.ts:1)
    at __webpack_require__ (bootstrap:789)
    at fn (bootstrap:100)

我尝试了很多来自Google的潜在解决方案,但没有任何结果。看来文件webpack没被看到。我在build/Release/node_activex中检查了node_modules ,这些文件在那里。我已经尝试过winaxelectron这样的electron-rebuild文档中的命令[1] [2],安装了windows-tools等,但也没有任何结果。

另外,当我创建了一个没有电子,打字稿和所有这些东西的新的极速快递项目后,安装并导入winax时,它可以按预期工作。

[1] https://www.npmjs.com/package/winax#building

[2] https://www.electronjs.org/docs/tutorial/using-native-node-modules

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...