getAlby / getAlby/js-sdk

Build error caused by @webbtc/webln-types when including @getalby/sdk in standard typescript project

Open
#234 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
89
Forks
46
Avg merge
2d 22h
Merged PRs (30d)
1

Description

The error I get: `Cannot find module '@webbtc/webln-types' or its corresponding type declarations.`

@webbtc/webln-types is declared as dev dependency but imported in the code, is this why? or can it be fixed by using `import type` syntax?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the missing-module error in a standard TypeScript project that includes @getalby/sdk, then inspect how @webbtc/webln-types is declared and imported. Done means the SDK can be included and compiled without the missing-module or type-declaration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.