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
fix(workers): Use dynamic imports to work around Node 22.x ES Module loader bug
- Delay importing of event, container, Codecept, and utility modules
- Use dynamic imports inside async init function instead of top-level imports
- Prevents 'Cannot read properties of undefined (reading getStatus)' error
This is a workaround for a known Node.js 22.x bug where worker threads
fail to load ES modules that have complex dependency chains. The error
occurs in the internal module loader when trying to load ESM from CJS.
Note: This partially mitigates the issue but the fundamental bug in
Node 22.x's module loader may still cause intermittent failures. The
issue has been reported to the Node.js project.
0 commit comments