lightninglabs / lightninglabs/lnc-web
lnc typings: unable to resolve module error
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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