atorber / puppet-bridge

wehcat bot base Wechaty,3.9.10.19/3.9.8.25/3.9.2.23/3.9.5.81
Apache License 2.0
40 stars 10 forks source link

Identifier '__dirname' has already been declared #3

Closed fangmuke closed 2 months ago

fangmuke commented 6 months ago

__dirname 是 Node.js 提供的一个全局变量,用来表示当前模块的目录名。

这个错误是由于在以下位置重复声明。

https://github.com/atorber/puppet-bridge/blob/de7e8e2d0715795601904f4a05fe1ca511c68ad4/src/agents/cixingguangming55555-wechat-bot.ts#L12

https://github.com/atorber/puppet-bridge/blob/de7e8e2d0715795601904f4a05fe1ca511c68ad4/src/agents/atorber-fused.ts#L18

https://github.com/atorber/puppet-bridge/blob/de7e8e2d0715795601904f4a05fe1ca511c68ad4/src/agents/ttttupup-wxhelper.ts#L25

https://github.com/atorber/puppet-bridge/blob/de7e8e2d0715795601904f4a05fe1ca511c68ad4/src/agents/jwping-wxbot.ts#L12

atorber commented 6 months ago

影响启动了吗?

fangmuke commented 6 months ago

影响启动了吗?

我在 electron 环境下,启动会报错。

atorber commented 6 months ago

新的npm包在electron还没试过,如果有问题,在之后的版本中修复

atorber commented 6 months ago

fixed