我的 Corona 机器人已经工作了很长时间。已经离线3个月了。现在,我已将其托管在 vultr(托管服务)中。但我从来没有遇到过这个错误,但现在面临这个......
\n新的:
\n我刚刚看了一下,仍然出现新错误。我的代码:https://paste.gg/p/anonymous/16c003ce7e49471b9fc7f4af25a688ae
\n错误是:\n5|x | (node:19549) UnhandledPromiseRejectionWarning: Error: An options parameter object is required \xe2\x80\x93
是的,我已经从 搬到CanvasRenderService到ChartJSNodeCanvas
老的:
\n const { CanvasRenderSerice } = require("chartjs-node-canvas")\n \n const canvasRenderService = new CanvasRenderService(\n width,\n height,\n ChartJS => {}\n );\nRun Code Online (Sandbox Code Playgroud)\n有错误:
\n5|x | (node:18303) UnhandledPromiseRejectionWarning: TypeError: CanvasRenderService is not a constructor\n5|x | at Client.<anonymous> (/root/covid/bot.js:357:37)\n5|x | at processTicksAndRejections (internal/process/task_queues.js:97:5)\nRun Code Online (Sandbox Code Playgroud)\n