Wechaty: Switch from grpc -> grpc-js

Created on 18 Mar 2021  ·  2Comments  ·  Source: wechaty/wechaty

We decided to use a pure JavaScript solution to get the maximum compatibility.

The codebase has been updated since [email protected]

However, it might introduce BUGs, so please do not upgrade the Wechaty until the minor version is even, which means stable.

@wechaty/contributors @wechaty/juzi

Link to:

enhancement

All 2 comments

Update 7:00 pm Mar 19, 2021

Friday BOT switched to the latest Pure JS gRPC version: [email protected]

  • 10 pm: Friday BOT seems to work without any problem after 3 hours. So the puppet service(client) passed the smoke testing. The puppet server needs to be tested next.

我刚刚用 vue 测试了一下, 貌似有问题啊

 WAIT  Compiling...                                    下午6:10:51
98% after emitting CopyPlugin

 ERROR  Failed to compile with 4 errors                下午6:10:52
These dependencies were not found:

* console in ./node_modules/raven/lib/instrumentation/instrumentor.js
* dns in ./node_modules/@grpc/grpc-js/build/src/resolver-dns.js
* http2 in ./node_modules/@grpc/grpc-js/build/src/server.js
* module in ./node_modules/raven/lib/instrumentation/instrumentor.js

To install them, you can run: npm install --save console dns http2 module   
Was this page helpful?
0 / 5 - 0 ratings