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

@types/bn.js must be installed to import this library #68

Closed
remagpie opened this issue Dec 4, 2019 · 0 comments · Fixed by #69
Closed

@types/bn.js must be installed to import this library #68

remagpie opened this issue Dec 4, 2019 · 0 comments · Fixed by #69

Comments

@remagpie
Copy link
Contributor

remagpie commented Dec 4, 2019

When I try to import this library in typescript, I get the following error:

error TS7016: Could not find a declaration file for module 'bn.js'. '.../node_modules/bn.js/lib/bn.js' implicitly has an 'any' type.
  Try `npm install @types/bn.js` if it exists or add a new declaration (.d.ts) file containing `declare module 'bn.js';`

1 import BN = require("bn.js");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant