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
When running an application that has circular deps with import-in-the-middle, it should handle this accordingly.
Actual Behavior
It silently fails in pre Node 20, and in Node 20 errors with
file:///Users/revans/code/cyclic-loader-issue/dep-2.js:5
dep1()
^
ReferenceError: Cannot access 'dep1' before initialization
at dep2 (file:///Users/revans/code/cyclic-loader-issue/dep-2.js:5:3)
at file:///Users/revans/code/cyclic-loader-issue/dep-1.js:7:1
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:308:24)
at async loadESM (node:internal/process/esm_loader:42:7)
at async handleMainPromise (node:internal/modules/run_main:66:12)
Expected Behavior
When running an application that has circular deps with
import-in-the-middle
, it should handle this accordingly.Actual Behavior
It silently fails in pre Node 20, and in Node 20 errors with
Steps to Reproduce the Problem
git clone https://github.com/bizob2828/cyclic-loader-issue
npm i && npm run start
Specifications
The text was updated successfully, but these errors were encountered: