Type 'unknown' is not assignable to type 'OrderMatchResult | Unmatch'.
Closed this issue · 4 comments
系统版本
linux
Node.js 版本
v14.15.4
应用版本
2.2.0-bugfix3
启动方式
No response
复述操作
npm start
配置文件
number: 11
password: 11
master: 11
header: ""
platform: 1
dbPort: 6379
webConsole:
enable: true
consolePort: 80
tcpLoggerPort: 54921
jwtSecret: "ffffffff"
错误报告
/tools/bot/yuan/Adachi-BOT-master/node_modules/ts-node/src/index.ts:513
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ? Unable to compile TypeScript:
src/modules/command/order.ts:80:3 - error TS2322: Type 'unknown' is not assignable to type 'OrderMatchResult | Unmatch'.
Type 'unknown' is not assignable to type 'Unmatch'.
80 return data;
~~~~~~~~~~~~~
at createTSError (/tools/bot/yuan/Adachi-BOT-master/node_modules/ts-node/src/index.ts:513:12)
at reportTSError (/tools/bot/yuan/Adachi-BOT-master/node_modules/ts-node/src/index.ts:517:19)
at getOutput (/tools/bot/yuan/Adachi-BOT-master/node_modules/ts-node/src/index.ts:752:36)
at Object.compile (/tools/bot/yuan/Adachi-BOT-master/node_modules/ts-node/src/index.ts:968:32)
at Module.m._compile (/tools/bot/yuan/Adachi-BOT-master/node_modules/ts-node/src/index.ts:1056:42)
at Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Object.require.extensions.<computed> [as .ts] (/tools/bot/yuan/Adachi-BOT-master/node_modules/ts-node/src/index.ts:1059:12)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! adachi-bot@2.2.0-bugfix3 start: `ts-node -r tsconfig-paths/register app.ts --files`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the adachi-bot@2.2.0-bugfix3 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-11-25T08_19_01_217Z-debug.log
你这是从什么版本更新上来的……建议重新clone一份
[root@iZ1ncbfsvwjaztZ Adachi-BOT]# npm start
adachi-bot@2.2.0-bugfix3 start /tools/bot/yuan/Adachi-BOT
ts-node -r tsconfig-paths/register app.ts --files
请问一下:这是什么原因,一点反应没有?
{"category":"[Android:2844026145]","level":"INFO","color":"green","message":"Redis 数据库已连接","time":"15:47:00.880"}
{"category":"[Android:2844026145]","level":"ERROR","color":"red","message":"插件加载异常: Error: Failed to launch the browser process!\n/tools/bot/yuan/Adachi-BOT/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n","time":"15:47:00.887"}