huan / state-switch

State Switch is a Monitor/Guard for Managing Your Async Operations.
https://paka.dev/npm/state-switch/
Apache License 2.0
5 stars 0 forks source link

TypeError: state_switch_1.BooleanIndicator is not a constructor #51

Closed WhiteWatson closed 1 year ago

WhiteWatson commented 1 year ago

使用electron打包WeChaty项目后出现 TypeError: state_switch_1.BooleanIndicator is not a constructor electron开发环境没有任何问题

node version v14.16.1 electron version v13.3.0 wechaty version 1.20.2

huan commented 1 year ago

Can you provide more details, like reproducible steps?

WhiteWatson commented 1 year ago

我的state-switch 版本没有更新到1.7.1,缺少BooleanIndicator的export,使用 resolutions 更新包到1.7.1解决了