helium / helium/helium-program-library

@helium/idls package might be misconfigured

Open
#336 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
163
Forks
59
Avg merge
22h 48m
Merged PRs (30d)
55

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.