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
ReferenceError: Cannot access 'PuppetSkelton' before initialization
at file:///home/runner/work/puppet/puppet/src/puppet/puppet.ts:65:27
at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
not ok 9 - src/mixins/memory-mixin.spec.ts # time=7128.042ms
When we import an internal module from another internal module, we should always direct import it from its module file, instead of from any other mod.js, so that we will only load the module we needed, and do not load any unrelated modules, which might cause this issue.
The text was updated successfully, but these errors were encountered:
Explanation
Solution
When we
import
an internal module from another internal module, we should always direct import it from its module file, instead of from any othermod.js
, so that we will only load the module we needed, and do not load any unrelated modules, which might cause this issue.The text was updated successfully, but these errors were encountered: