Skip to content

Problems using boltwall in a typescript project #26

Description

@bucko13

This came up in one of the Pleb.fi projects. This seemed not to be a problem if using boltwall as a local dependency, so it seems maybe a problem in how the project is bundled and packaged from npm. Here are the errors reported:

node_modules/boltwall/dist/typings/index.d.ts:1:72 - error TS2307: Cannot find module './invoice' or its corresponding type declarations.

1 import { InvoiceResponse, LnServiceInvoiceResponse, InvoiceBody } from './invoice';
                                                                         ~~~~~~~

node_modules/boltwall/dist/typings/index.d.ts:2:65 - error TS2307: Cannot find module './configs' or its corresponding type declarations.

2 import { BoltwallConfig, DescriptionGetter, CaveatGetter } from './configs';
                                                                  ~~~~~~~

node_modules/boltwall/dist/typings/index.d.ts:3:26 - error TS2307: Cannot find module './node' or its corresponding type declarations.

3 import { NodeInfo } from './node';
                           ~~~~

node_modules/boltwall/dist/typings/index.d.ts:4:33 - error TS2307: Cannot find module './logger' or its corresponding type declarations.

4 import { LoggerInterface } from './logger';

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