Effect CommunityEC
Effect Communityβ€’3y agoβ€’
13 replies
ts

ESM Imports Issue with `@effect/data` Package

ESM imports for @effect/data seem broken to me. It's exposed as
      "import": {
        "types": "./*.d.ts",
        "default": "./mjs/*.mjs"
      },

In the package.json, which means that,
- I get a typeerror trying to import, e.g. import * as A from '@effect/data/ReadonlyArray', because the file extension is required for relative imports, or
- I get a runtime error for import * as A from '@effect/data/ReadonlyArray.js';, because it can't find that module.
Was this page helpful?