boltwall icon indicating copy to clipboard operation
boltwall copied to clipboard

Problems using boltwall in a typescript project

Open bucko13 opened this issue 3 years ago • 0 comments

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';

bucko13 avatar Aug 25 '21 00:08 bucko13