Skip to content

@helium/idls package might be misconfigured #336

@sagar-a16z

Description

@sagar-a16z

I'm trying to import the @helium/idls package but I keep getting a module not found error when running the transpiled node.js.

I think this is happening because the package.json for packages/idls doesn't include the following declarations:

 "main": "./lib/cjs/index.js",
 "module": "./lib/esm/src/index.js",
 "types": "./lib/types/src/index.d.ts",
  
 "exports": {
   "import": "./lib/esm/src/index.js",
   "require": "./lib/cjs/index.js",
   "types": "./lib/types/src/index.d.ts"
  },

I think this means that typescript can "build" just fine but node doesn't know where to find the module inside the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions