You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm running the mybot.js from README, the following error raised:
TypeError: brolog_1.default is not a constructor
at Object.<anonymous> (/data/Projects/wechaty-pratice/node_modules/wechaty-schedule/node_modules/wechaty/dist/src/config.js:57:15)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:119:18)
at Object.<anonymous> (/data/Projects/wechaty-pratice/node_modules/wechaty-schedule/node_modules/wechaty/dist/index.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:119:18)
at Object.<anonymous> (/data/Projects/wechaty-pratice/node_modules/wechaty-schedule/index.js:1:28)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:119:18)
at Object.<anonymous> (/data/Projects/wechaty-pratice/wechaty_bot/mybot.js:2:31)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
It seems that wechaty 0.13.93 is the cause of the problem, in wechaty-schedule/node_modules/wechaty/dist/src/config.js:57:15:
...
const brolog_1 = require("brolog");
...
exports.log = new brolog_1.default();
But brolog 1.2.0 (the dependency of wechaty 0.13.93) don't has the default export.
Maybe the wechaty dependency need to be upgraded.
The text was updated successfully, but these errors were encountered:
When I'm running the
mybot.js
from README, the following error raised:It seems that
wechaty 0.13.93
is the cause of the problem, inwechaty-schedule/node_modules/wechaty/dist/src/config.js:57:15
:But
brolog 1.2.0
(the dependency ofwechaty 0.13.93
) don't has the default export.Maybe the
wechaty
dependency need to be upgraded.The text was updated successfully, but these errors were encountered: