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
In order to load Wechaty Puppet under ESM mode by setting the environment variable WECHATY_PUPPT, or by setting the options.puppet = 'wechaty-puppet-xxx', the puppet provider NPM module must support ESM.
If the puppet does not support ESM, then the Wechaty will run into the below issue: TypeError: MyPuppet is not a constructor
Currently, the Wechaty ecosystem is moving from CommonJS to ES Modules.
The Wechaty will be Dual-ESM-CJS-Module supported, and the default mode will be under ESM.
In order to load Wechaty Puppet under ESM mode by setting the environment variable
WECHATY_PUPPT
, or by setting theoptions.puppet = 'wechaty-puppet-xxx'
, the puppet provider NPM module must support ESM.If the puppet does not support ESM, then the Wechaty will run into the below issue: TypeError: MyPuppet is not a constructor
The text was updated successfully, but these errors were encountered: