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
We need to import interface-of.js before importing puppet-abstract.js or we will get the following error message:
ReferenceError: Cannot access 'Puppet' before initialization
at file:///home/huan/git/wechaty/puppet/src/puppet/interface-of.ts:23:48
at ModuleJob.run (node:internal/modules/esm/module_job:175:25)
at async Loader.import (node:internal/modules/esm/loader:178:24)
at async Object.loadESM (node:internal/process/esm_loader:68:5)
This is of course due to the circler dependence. However, the deeper reason is still not clear.
We need to import
interface-of.js
before importingpuppet-abstract.js
or we will get the following error message:This is of course due to the circler dependence. However, the deeper reason is still not clear.
Need to be investigated.
Related code
puppet/src/puppet/interface-of.ts
Line 35 in 3965e2d
puppet/src/mixins/validate-mixin.ts
Line 27 in 3965e2d
The text was updated successfully, but these errors were encountered: