Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems using boltwall in a typescript project #26

Open
bucko13 opened this issue Aug 25, 2021 · 0 comments
Open

Problems using boltwall in a typescript project #26

bucko13 opened this issue Aug 25, 2021 · 0 comments

Comments

@bucko13
Copy link
Collaborator

bucko13 commented Aug 25, 2021

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';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant