Skip to content

Countless dependency cycles in core package #1121

@PeterBenc

Description

@PeterBenc

Summary

I am trying to use cardano-sdk in SES environment. I am unable to do so getting

Class extends value undefined is not a constructor or null

Most likely, this is because of dependency cycles. I tried using madge which found ~165 dependency cycles in the core package. Most of them I suspect, can be fixed with import type.

Steps to reproduce the bug

Run
yarn madge --circular src/index.ts --debug --extensions ts in packages/core

Actual Result

`✖ Found 165 circular dependencies!

Expected Result

Found 0 circular dependencies!

SDK version

0.28.4

Environment type

  • Node.js
  • Browser
  • Browser Extension
  • Other

Environment details

No response

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