8000 Circular dependencies causing issues in node 18 · Issue #361 · nytimes/library · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Circular dependencies causing issues in node 18 #361
Open
@afischer

Description

@afischer

Context (Environment)

There are three circular dependencies in the app that have been present for quite some time.

  • server/cache.js > server/urlParser.js > server/list.js
  • server/cache.js > server/urlParser.js > server/list.js > server/docs.js
  • server/list.js > server/docs.js > server/formatter.js

These have not caused issues in the past, but when using Node 18 in specific scenarios (so far only seen in linux environments), can cause critical errors in the app.

Solution

Remove the circular dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0