【发布时间】:2021-05-07 08:40:32
【问题描述】:
每次我尝试部署我的不和谐机器人时都会收到此错误。我一直在尝试,但我希望有人比我更有经验。
错误:
client.database?.init();
22:34:56.146 ^
22:34:56.146 SyntaxError: Unexpected token '.'
22:34:56.146 at wrapSafe (internal/modules/cjs/loader.js:915:16)
22:34:56.146 at Module._compile (internal/modules/cjs/loader.js:963:27)
22:34:56.146 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
22:34:56.146 at Module.load (internal/modules/cjs/loader.js:863:32)
22:34:56.146 at Function.Module._load (internal/modules/cjs/loader.js:708:14)
22:34:56.146 at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
22:34:56.146 at internal/main/run_main_module.js:17:47
22:34:56.150 Error: Command "node ." exited with 1
【问题讨论】:
-
请分享更多详细信息,例如涉及的代码以及您解决问题的尝试
标签: javascript node.js mongodb mongoose discord.js