lightninglabs / lightninglabs/lnc-web

lnc typings: unable to resolve module error

Open
#102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
55
Forks
20
PR merge metrics
No merged PRs in 30d

Description

I tried to use typing present in the package but module resolution fails for tests like jest and such

```
import {
Invoice,
Invoice_InvoiceState,
} from "@lightninglabs/lnc-core/dist/types/proto/lnd/lightning";
```

```Cannot find module '@lightninglabs/lnc-core/dist/types/proto/lnd/lightning' from 'src/extension/background-script/connectors/lnc.ts'```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the import in src/extension/background-script/connectors/lnc.ts and reproduce the module-resolution failure in the Jest tests. Inspect how @lightninglabs/lnc-core exposes its typings and how test resolution handles that path; done means the shown import resolves successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.