Giter Club home page Giter Club logo

electron-wechaty's Introduction

wechaty 结合 electron

Give a clear and concise description of what the bug is.

  • 在 electron 的主进程构建 Wechaty 会报错
  • webpack 打包 wechaty 也会报错

What is your wechaty version?

"wechaty": "^0.60.3",

Which puppet are you using for wechaty? (puppeteer/padlocal/service...)

wechaty-puppet-service  # 企业微信

What is your node version? (run node --version)

v14.15.4

What os are you using

Windows 10

Provide Your Network Information

  1. Where is the location of your server? (i.e. City, or In/Out China)

    Shang Hhai

  2. Which cloud platform(AliYun/Qcloud/DigitalOcean/etc) are you using?

    own machine

我测试了四种情况, 有三种失败了

重现错误的实例-code

Actual behavior

  • 在 electron 主进程中不能构建 Wechaty, 但应该可以正常启动
  • webpack 打包 electron 主进程 + Wechaty 时也会报错

Expected behavior

  • 启动开发环境 electron + wechaty 不会报错, 并且控制台可以打印二维码
  • webpack 编译 electron 主进程代码 + wechaty 不会报错

Steps to reproduce the behavior (and fixes, if any)

进入 electron-wechaty 目录

启动 electron 应用, 在主进程中构建 wechaty

$ yarn dev:electron
λ yarndev:electron
yarn run v1.22.10
$ electron electron-main.js

App threw an error during load
Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: electron-v11.1-win32-x64-unknown
Found: [node-v83-win32-x64-unknown]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module 'C:\sxl\project\electron-wechaty\node_modules\grpc\src\node\extension_binary\electron-v11.1-win32-x64-unknown\grpc_node.node'
Require stack:
- C:\sxl\project\electron-wechaty\node_modules\grpc\src\grpc_extension.js
- C:\sxl\project\electron-wechaty\node_modules\grpc\src\client_interceptors.js
- C:\sxl\project\electron-wechaty\node_modules\grpc\src\client.js
- C:\sxl\project\electron-wechaty\node_modules\grpc\index.js
- C:\sxl\project\electron-wechaty\node_modules\wechaty-puppet-service\dist\src\client\puppet-service.js
- C:\sxl\project\electron-wechaty\node_modules\wechaty-puppet-service\dist\src\mod.js
- C:\sxl\project\electron-wechaty\node_modules\wechaty\dist\src\io-client.js
- C:\sxl\project\electron-wechaty\node_modules\wechaty\dist\src\mod.js
- C:\sxl\project\electron-wechaty\electron-main.js
- C:\sxl\project\electron-wechaty\node_modules\electron\dist\resources\default_app.asar\main.js
-
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\grpc\src\grpc_extension.js:53:17)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\grpc\src\client_interceptors.js:144:12)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\grpc\src\client.js:35:27)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\grpc\index.js:27:14)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\wechaty-puppet-service\dist\src\client\puppet-service.js:9:32)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\wechaty-puppet-service\dist\src\mod.js:4:24)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\wechaty\dist\src\io-client.js:28:34)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\wechaty\dist\src\mod.js:50:19)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\electron-main.js:6:21)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at loadApplicationPackage (C:\sxl\project\electron-wechaty\node_modules\electron\dist\resources\default_app.asar\main.js:110:16)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\electron\dist\resources\default_app.asar\main.js:222:9)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Object.<anonymous> (electron/js2c/browser_init.js:185:3510)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:185:3714)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:277:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:219:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:24:9)
    at Module._load (internal/modules/cjs/loader.js:856:15)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: electron-v11.1-win32-x64-unknown
Found: [node-v83-win32-x64-unknown]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module 'C:\sxl\project\electron-wechaty\node_modules\grpc\src\node\extension_binary\electron-v11.1-win32-x64-unknown\grpc_node.node'
Require stack:
- C:\sxl\project\electron-wechaty\node_modules\grpc\src\grpc_extension.js
- C:\sxl\project\electron-wechaty\node_modules\grpc\src\client_interceptors.js
- C:\sxl\project\electron-wechaty\node_modules\grpc\src\client.js
- C:\sxl\project\electron-wechaty\node_modules\grpc\index.js
- C:\sxl\project\electron-wechaty\node_modules\wechaty-puppet-service\dist\src\client\puppet-service.js
- C:\sxl\project\electron-wechaty\node_modules\wechaty-puppet-service\dist\src\mod.js
- C:\sxl\project\electron-wechaty\node_modules\wechaty\dist\src\io-client.js
- C:\sxl\project\electron-wechaty\node_modules\wechaty\dist\src\mod.js
- C:\sxl\project\electron-wechaty\electron-main.js
- C:\sxl\project\electron-wechaty\node_modules\electron\dist\resources\default_app.asar\main.js
-
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\grpc\src\grpc_extension.js:53:17)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\grpc\src\client_interceptors.js:144:12)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\grpc\src\client.js:35:27)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\grpc\index.js:27:14)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\wechaty-puppet-service\dist\src\client\puppet-service.js:9:32)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\wechaty-puppet-service\dist\src\mod.js:4:24)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\wechaty\dist\src\io-client.js:28:34)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\wechaty\dist\src\mod.js:50:19)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\electron-main.js:6:21)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at loadApplicationPackage (C:\sxl\project\electron-wechaty\node_modules\electron\dist\resources\default_app.asar\main.js:110:16)
    at Object.<anonymous> (C:\sxl\project\electron-wechaty\node_modules\electron\dist\resources\default_app.asar\main.js:222:9)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Object.<anonymous> (electron/js2c/browser_init.js:185:3510)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:185:3714)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:277:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:219:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:24:9)
    at Module._load (internal/modules/cjs/loader.js:856:15)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12710)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

用 webpack 打包 wechaty + electron 主进程代码

$  yarn build:electron
$ yarn dev:electron
yarn run v1.22.10
$ electron electron-main.js

create bot
(node:22364) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
10:10:54 ERR PuppetWeChatBridge start() exception: Error: Could not find expected browser (chrome) locally. Run `npm install` 
to download the correct Chromium revision (848005).
10:10:54 ERR PuppetWeChat initBridge() exception: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (848005).
10:10:54 ERR PuppetWeChat initBridge() this.bridge.stop() rejection: Error: no page
10:10:54 ERR PuppetWeChat start() exception: Error
Error
    at PuppetWeChat.<anonymous> (C:\sxl\test\electron-wechaty\node_modules\wechaty\dist\src\wechaty.js:271:44)
    at PuppetWeChat.emit (events.js:315:20)
    at PuppetWeChat.EventEmitter.emit (domain.js:483:12)
    at PuppetWeChat.start (C:\sxl\test\electron-wechaty\node_modules\wechaty-puppet-wechat\dist\src\puppet-wechat.js:105:18)  
    at async Wechaty.start (C:\sxl\test\electron-wechaty\node_modules\wechaty\dist\src\wechaty.js:478:13)
10:10:54 ERR Wechaty start() exception:
鍒濆鍖栧け璐? Error.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

webpack 打包 wechaty.js 时报错

$  yarn build:nodejs
λ yarn build:nodejs
yarn run v1.22.10
$ npx webpack --config webpack.config.wechaty.js
asset built.js 11.2 MiB [compared for emit] (name: main)
runtime modules 793 bytes 4 modules
javascript modules 9.25 MiB
  cacheable modules 9.25 MiB
    modules by path ./node_modules/ 9.25 MiB 1322 modules
    modules by path ./*.js 1.23 KiB 2 modules
  optional modules 202 bytes [optional]
    external "cluster" 42 bytes [optional] [built] [code generated]
    ./node_modules/log4js/lib/appenders/ sync 160 bytes [optional] [built] [code generated]
json modules 508 KiB 45 modules

WARNING in ./node_modules/hot-import/dist/src/hot-import.js 55:28-86
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/hot-import/dist/index.js 3:21-48 4:19-46
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/puppet.js 29:21-42
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/mod.js 40:15-34
 @ ./node_modules/wechaty/dist/src/mod.js 22:23-48
 @ ./wechaty.js 1:20-38

WARNING in ./node_modules/hot-import/dist/src/hot-import.js 254:66-86
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/hot-import/dist/index.js 3:21-48 4:19-46
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/puppet.js 29:21-42
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/mod.js 40:15-34
 @ ./node_modules/wechaty/dist/src/mod.js 22:23-48
 @ ./wechaty.js 1:20-38

WARNING in ./node_modules/hot-import/dist/src/hot-import.js 266:16-44
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/hot-import/dist/index.js 3:21-48 4:19-46
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/puppet.js 29:21-42
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/mod.js 40:15-34
 @ ./node_modules/wechaty/dist/src/mod.js 22:23-48
 @ ./wechaty.js 1:20-38

WARNING in ./node_modules/hot-import/dist/src/hot-import.js 277:16-44
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/hot-import/dist/index.js 3:21-48 4:19-46
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/puppet.js 29:21-42
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/mod.js 40:15-34
 @ ./node_modules/wechaty/dist/src/mod.js 22:23-48
 @ ./wechaty.js 1:20-38

WARNING in ./node_modules/log4js/lib/appenders/index.js 26:11-30
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/log4js/lib/log4js.js 27:18-40
 @ ./node_modules/esdk-obs-nodejs/lib/log.js 20:15-32
 @ ./node_modules/esdk-obs-nodejs/lib/obs.js 19:16-32
 @ ./node_modules/wechaty/node_modules/memory-card/dist/src/storage/obs.js 16:18-44
 @ ./node_modules/wechaty/node_modules/memory-card/dist/src/storage/backend-config.js 9:15-31
 @ ./node_modules/wechaty/node_modules/memory-card/dist/src/storage/get-storage.js 5:25-52
 @ ./node_modules/wechaty/node_modules/memory-card/dist/src/storage/mod.js 5:20-44
 @ ./node_modules/wechaty/node_modules/memory-card/dist/src/memory-card.js 38:14-38
 @ ./node_modules/wechaty/node_modules/memory-card/dist/src/mod.js 4:22-46
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/config.js 8:22-44
 @ ./node_modules/wechaty/node_modules/wechaty-puppet/dist/src/mod.js 35:15-34
 @ ./node_modules/wechaty/dist/src/mod.js 22:23-48
 @ ./wechaty.js 1:20-38

WARNING in ./node_modules/wechaty/dist/src/puppet-manager.js 120:77-96
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/wechaty/dist/src/wechaty.js 34:25-52
 @ ./node_modules/wechaty/dist/src/mod.js 35:16-36
 @ ./wechaty.js 1:20-38

WARNING in ./node_modules/wechaty/dist/src/puppet-manager.js 154:50-77
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/wechaty/dist/src/wechaty.js 34:25-52
 @ ./node_modules/wechaty/dist/src/mod.js 35:16-36
 @ ./wechaty.js 1:20-38

WARNING in ./node_modules/wechaty/dist/src/puppet-manager.js 172:12-39
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/wechaty/dist/src/wechaty.js 34:25-52
 @ ./node_modules/wechaty/dist/src/mod.js 35:16-36
 @ ./wechaty.js 1:20-38

WARNING in ./node_modules/ws/lib/buffer-util.js 105:21-42
Module not found: Error: Can't resolve 'bufferutil' in 'C:\sxl\test\electron-wechaty\node_modules\ws\lib'
 @ ./node_modules/ws/lib/websocket.js 24:21-45
 @ ./node_modules/ws/index.js 3:18-44
 @ ./node_modules/wechaty/dist/src/io.js 27:29-42
 @ ./node_modules/wechaty/dist/src/wechaty.js 33:13-28
 @ ./node_modules/wechaty/dist/src/mod.js 35:16-36
 @ ./wechaty.js 1:20-38

WARNING in ./node_modules/ws/lib/validation.js 4:22-47
Module not found: Error: Can't resolve 'utf-8-validate' in 'C:\sxl\test\electron-wechaty\node_modules\ws\lib'
 @ ./node_modules/ws/lib/receiver.js 13:43-66
 @ ./node_modules/ws/index.js 7:21-46
 @ ./node_modules/wechaty/dist/src/io.js 27:29-42
 @ ./node_modules/wechaty/dist/src/wechaty.js 33:13-28
 @ ./node_modules/wechaty/dist/src/mod.js 35:16-36
 @ ./wechaty.js 1:20-38

10 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.32.0 compiled with 10 warnings in 3603 ms
Done in 5.54s.

electron-wechaty's People

Contributors

coderxiaoshi avatar paul-leo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.